using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Printing;
using System.Data.OleDb;
using System.Collections.Specialized;
using System.IO;
using C1.Win.C1Preview;

//Using PCS's namespaces
using PCSComUtils.Common;
using PCSComUtils.Common.BO;
using PCSComUtils.MasterSetup.BO;
using PCSComUtils.PCSExc;
using PCSUtils.Log;
using PCSUtils.Utils;
using PCSUtils.Framework.ReportFrame;
using PCSComUtils.Framework.ReportFrame.BO;
using C1PrintPreviewDialog = PCSUtils.Framework.ReportFrame.C1PrintPreviewDialog;

namespace PCSMaterials.Inventory
{
	

	/// <summary>
	/// Summary description for InventoryStatus.
	/// </summary>
	public class InOutStockReport : System.Windows.Forms.Form
	{        
		private enum EnumLocationType
		{
			MaterLocation = 0,
			Location = 1,
			Bin = 2
		}	

		#region Declaration
		
		#region System Generated

		private C1.Win.C1List.C1Combo cboCCN;
		private System.Windows.Forms.Label lblCCN;
		private System.Windows.Forms.Label lblMasLoc;
		private System.Windows.Forms.TextBox txtMasLoc;
		private System.Windows.Forms.TextBox txtLocation;
		private System.Windows.Forms.TextBox txtCategory;
		private System.Windows.Forms.Label lblLocation;
		private System.Windows.Forms.Label lblCategory;
		private System.Windows.Forms.Button btnMasLoc;
		private System.Windows.Forms.Button btnCategory;
		private System.Windows.Forms.Button btnHelp;
		private System.Windows.Forms.Button btnClose;
		private System.Windows.Forms.Button btnPrint;
		private System.Windows.Forms.Label lblFromDate;
		private C1.Win.C1Input.C1DateEdit dtmFromDate;
		private System.Windows.Forms.Label lblToDate;
		private C1.Win.C1Input.C1DateEdit dtmToDate;
		private System.Windows.Forms.Label lblBin;
		private System.Windows.Forms.Label lblSource;
		private System.Windows.Forms.TextBox txtBin;
		private System.Windows.Forms.TextBox txtSource;
		private System.Windows.Forms.Button btnBin;
		private System.Windows.Forms.Button btnSource;
		private C1.Win.C1TrueDBGrid.C1TrueDBGrid dgrdData;		
		private System.ComponentModel.Container components = null;

		#endregion System Generated
		
		#region Constants 
		
		private const string THIS = "PCSMaterials.Inventory.InOutStockReport";
		private const string SELECT_FLD = "Select_Fld";
		#endregion Constants 

		#region Variables		
		
		UtilsBO boUtil = new UtilsBO();
		private System.Windows.Forms.CheckBox chkSelectAll;
		private System.Windows.Forms.Label lblAllLocation;
		private System.Windows.Forms.TextBox txtBinType;
		private System.Windows.Forms.Button btnBinType;
		private System.Windows.Forms.Label lblModel;
		private System.Windows.Forms.Button btnModel;
		private System.Windows.Forms.TextBox txtModel;
		private System.Windows.Forms.Label lblBinType;
		private System.Windows.Forms.TextBox txtPartName;
		private System.Windows.Forms.TextBox txtPartNumber;
		private System.Windows.Forms.TextBox txtRevision;
		private System.Windows.Forms.Button btnPartNumberSearch;
		private System.Windows.Forms.Button btnPartNameSearch;
		private System.Windows.Forms.Label lblPartNumer;
		private System.Windows.Forms.Label lblPartName;
		private DataTable dtbGridLayOut;

		#endregion
		
		#endregion Declaration

		#region Constructor, Destructor
		public InOutStockReport()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
			
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}
		
		#endregion Constructor, Destructor

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(InOutStockReport));
			this.cboCCN = new C1.Win.C1List.C1Combo();
			this.lblCCN = new System.Windows.Forms.Label();
			this.txtMasLoc = new System.Windows.Forms.TextBox();
			this.txtLocation = new System.Windows.Forms.TextBox();
			this.txtCategory = new System.Windows.Forms.TextBox();
			this.lblMasLoc = new System.Windows.Forms.Label();
			this.lblLocation = new System.Windows.Forms.Label();
			this.lblCategory = new System.Windows.Forms.Label();
			this.btnMasLoc = new System.Windows.Forms.Button();
			this.btnCategory = new System.Windows.Forms.Button();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnHelp = new System.Windows.Forms.Button();
			this.btnPrint = new System.Windows.Forms.Button();
			this.dtmFromDate = new C1.Win.C1Input.C1DateEdit();
			this.lblFromDate = new System.Windows.Forms.Label();
			this.dtmToDate = new C1.Win.C1Input.C1DateEdit();
			this.lblToDate = new System.Windows.Forms.Label();
			this.btnBin = new System.Windows.Forms.Button();
			this.txtBin = new System.Windows.Forms.TextBox();
			this.lblBin = new System.Windows.Forms.Label();
			this.btnSource = new System.Windows.Forms.Button();
			this.txtSource = new System.Windows.Forms.TextBox();
			this.lblSource = new System.Windows.Forms.Label();
			this.dgrdData = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
			this.chkSelectAll = new System.Windows.Forms.CheckBox();
			this.lblAllLocation = new System.Windows.Forms.Label();
			this.txtBinType = new System.Windows.Forms.TextBox();
			this.btnBinType = new System.Windows.Forms.Button();
			this.lblBinType = new System.Windows.Forms.Label();
			this.btnModel = new System.Windows.Forms.Button();
			this.txtModel = new System.Windows.Forms.TextBox();
			this.lblModel = new System.Windows.Forms.Label();
			this.txtPartName = new System.Windows.Forms.TextBox();
			this.txtPartNumber = new System.Windows.Forms.TextBox();
			this.txtRevision = new System.Windows.Forms.TextBox();
			this.btnPartNumberSearch = new System.Windows.Forms.Button();
			this.btnPartNameSearch = new System.Windows.Forms.Button();
			this.lblPartNumer = new System.Windows.Forms.Label();
			this.lblPartName = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmToDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).BeginInit();
			this.SuspendLayout();
			// 
			// cboCCN
			// 
			this.cboCCN.AccessibleDescription = resources.GetString("cboCCN.AccessibleDescription");
			this.cboCCN.AccessibleName = resources.GetString("cboCCN.AccessibleName");
			this.cboCCN.AddItemSeparator = ';';
			this.cboCCN.AllowRowSizing = C1.Win.C1List.RowSizingEnum.AllRows;
			this.cboCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cboCCN.Anchor")));
			this.cboCCN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cboCCN.BackgroundImage")));
			this.cboCCN.Caption = "";
			this.cboCCN.CaptionHeight = 17;
			this.cboCCN.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
			this.cboCCN.ColumnCaptionHeight = 17;
			this.cboCCN.ColumnFooterHeight = 17;
			this.cboCCN.ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownList;
			this.cboCCN.ContentHeight = 15;
			this.cboCCN.DeadAreaBackColor = System.Drawing.Color.Empty;
			this.cboCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cboCCN.Dock")));
			this.cboCCN.EditorBackColor = System.Drawing.SystemColors.Window;
			this.cboCCN.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.cboCCN.EditorForeColor = System.Drawing.SystemColors.WindowText;
			this.cboCCN.EditorHeight = 15;
			this.cboCCN.Enabled = ((bool)(resources.GetObject("cboCCN.Enabled")));
			this.cboCCN.FlatStyle = C1.Win.C1List.FlatModeEnum.System;
			this.cboCCN.Font = ((System.Drawing.Font)(resources.GetObject("cboCCN.Font")));
			this.cboCCN.GapHeight = 2;
			this.cboCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cboCCN.ImeMode")));
			this.cboCCN.ItemHeight = 15;
			this.cboCCN.Location = ((System.Drawing.Point)(resources.GetObject("cboCCN.Location")));
			this.cboCCN.MatchEntryTimeout = ((long)(2000));
			this.cboCCN.MaxDropDownItems = ((short)(5));
			this.cboCCN.MaxLength = 32767;
			this.cboCCN.MouseCursor = System.Windows.Forms.Cursors.Default;
			this.cboCCN.Name = "cboCCN";
			this.cboCCN.PartialRightColumn = false;
			this.cboCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cboCCN.RightToLeft")));
			this.cboCCN.RowDivider.Color = System.Drawing.Color.DarkGray;
			this.cboCCN.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None;
			this.cboCCN.RowSubDividerColor = System.Drawing.Color.DarkGray;
			this.cboCCN.Size = ((System.Drawing.Size)(resources.GetObject("cboCCN.Size")));
			this.cboCCN.TabIndex = ((int)(resources.GetObject("cboCCN.TabIndex")));
			this.cboCCN.Text = resources.GetString("cboCCN.Text");
			this.cboCCN.Visible = ((bool)(resources.GetObject("cboCCN.Visible")));
			this.cboCCN.PropBag = "<?xml version=\"1.0\"?><Blob><Styles type=\"C1.Win.C1List.Design.ContextWrapper\"><Da" +
				"ta>Group{BackColor:ControlDark;Border:None,,0, 0, 0, 0;AlignVert:Center;}Style2{" +
				"}Style5{}Style4{}Style7{}Style6{}EvenRow{BackColor:Aqua;}Selected{ForeColor:High" +
				"lightText;BackColor:Highlight;}Style3{}Inactive{ForeColor:InactiveCaptionText;Ba" +
				"ckColor:InactiveCaption;}Footer{}Caption{AlignHorz:Center;}Normal{BackColor:Wind" +
				"ow;}HighlightRow{ForeColor:HighlightText;BackColor:Highlight;}Style9{AlignHorz:N" +
				"ear;}OddRow{}RecordSelector{AlignImage:Center;}Heading{Wrap:True;AlignVert:Cente" +
				"r;Border:Raised,,1, 1, 1, 1;ForeColor:ControlText;BackColor:Control;}Style8{}Sty" +
				"le10{}Style11{}Style1{}</Data></Styles><Splits><C1.Win.C1List.ListBoxView AllowC" +
				"olSelect=\"False\" Name=\"\" CaptionHeight=\"17\" ColumnCaptionHeight=\"17\" ColumnFoote" +
				"rHeight=\"17\" VerticalScrollGroup=\"1\" HorizontalScrollGroup=\"1\"><ClientRect>0, 0," +
				" 118, 158</ClientRect><VScrollBar><Width>16</Width></VScrollBar><HScrollBar><Hei" +
				"ght>16</Height></HScrollBar><CaptionStyle parent=\"Style2\" me=\"Style9\" /><EvenRow" +
				"Style parent=\"EvenRow\" me=\"Style7\" /><FooterStyle parent=\"Footer\" me=\"Style3\" />" +
				"<GroupStyle parent=\"Group\" me=\"Style11\" /><HeadingStyle parent=\"Heading\" me=\"Sty" +
				"le2\" /><HighLightRowStyle parent=\"HighlightRow\" me=\"Style6\" /><InactiveStyle par" +
				"ent=\"Inactive\" me=\"Style4\" /><OddRowStyle parent=\"OddRow\" me=\"Style8\" /><RecordS" +
				"electorStyle parent=\"RecordSelector\" me=\"Style10\" /><SelectedStyle parent=\"Selec" +
				"ted\" me=\"Style5\" /><Style parent=\"Normal\" me=\"Style1\" /></C1.Win.C1List.ListBoxV" +
				"iew></Splits><NamedStyles><Style parent=\"\" me=\"Normal\" /><Style parent=\"Normal\" " +
				"me=\"Heading\" /><Style parent=\"Heading\" me=\"Footer\" /><Style parent=\"Heading\" me=" +
				"\"Caption\" /><Style parent=\"Heading\" me=\"Inactive\" /><Style parent=\"Normal\" me=\"S" +
				"elected\" /><Style parent=\"Normal\" me=\"HighlightRow\" /><Style parent=\"Normal\" me=" +
				"\"EvenRow\" /><Style parent=\"Normal\" me=\"OddRow\" /><Style parent=\"Heading\" me=\"Rec" +
				"ordSelector\" /><Style parent=\"Caption\" me=\"Group\" /></NamedStyles><vertSplits>1<" +
				"/vertSplits><horzSplits>1</horzSplits><Layout>Modified</Layout><DefaultRecSelWid" +
				"th>17</DefaultRecSelWidth></Blob>";
			// 
			// lblCCN
			// 
			this.lblCCN.AccessibleDescription = resources.GetString("lblCCN.AccessibleDescription");
			this.lblCCN.AccessibleName = resources.GetString("lblCCN.AccessibleName");
			this.lblCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCCN.Anchor")));
			this.lblCCN.AutoSize = ((bool)(resources.GetObject("lblCCN.AutoSize")));
			this.lblCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCCN.Dock")));
			this.lblCCN.Enabled = ((bool)(resources.GetObject("lblCCN.Enabled")));
			this.lblCCN.Font = ((System.Drawing.Font)(resources.GetObject("lblCCN.Font")));
			this.lblCCN.ForeColor = System.Drawing.Color.Maroon;
			this.lblCCN.Image = ((System.Drawing.Image)(resources.GetObject("lblCCN.Image")));
			this.lblCCN.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.ImageAlign")));
			this.lblCCN.ImageIndex = ((int)(resources.GetObject("lblCCN.ImageIndex")));
			this.lblCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCCN.ImeMode")));
			this.lblCCN.Location = ((System.Drawing.Point)(resources.GetObject("lblCCN.Location")));
			this.lblCCN.Name = "lblCCN";
			this.lblCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCCN.RightToLeft")));
			this.lblCCN.Size = ((System.Drawing.Size)(resources.GetObject("lblCCN.Size")));
			this.lblCCN.TabIndex = ((int)(resources.GetObject("lblCCN.TabIndex")));
			this.lblCCN.Text = resources.GetString("lblCCN.Text");
			this.lblCCN.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.TextAlign")));
			this.lblCCN.Visible = ((bool)(resources.GetObject("lblCCN.Visible")));
			// 
			// txtMasLoc
			// 
			this.txtMasLoc.AccessibleDescription = resources.GetString("txtMasLoc.AccessibleDescription");
			this.txtMasLoc.AccessibleName = resources.GetString("txtMasLoc.AccessibleName");
			this.txtMasLoc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtMasLoc.Anchor")));
			this.txtMasLoc.AutoSize = ((bool)(resources.GetObject("txtMasLoc.AutoSize")));
			this.txtMasLoc.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtMasLoc.BackgroundImage")));
			this.txtMasLoc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtMasLoc.Dock")));
			this.txtMasLoc.Enabled = ((bool)(resources.GetObject("txtMasLoc.Enabled")));
			this.txtMasLoc.Font = ((System.Drawing.Font)(resources.GetObject("txtMasLoc.Font")));
			this.txtMasLoc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtMasLoc.ImeMode")));
			this.txtMasLoc.Location = ((System.Drawing.Point)(resources.GetObject("txtMasLoc.Location")));
			this.txtMasLoc.MaxLength = ((int)(resources.GetObject("txtMasLoc.MaxLength")));
			this.txtMasLoc.Multiline = ((bool)(resources.GetObject("txtMasLoc.Multiline")));
			this.txtMasLoc.Name = "txtMasLoc";
			this.txtMasLoc.PasswordChar = ((char)(resources.GetObject("txtMasLoc.PasswordChar")));
			this.txtMasLoc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtMasLoc.RightToLeft")));
			this.txtMasLoc.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtMasLoc.ScrollBars")));
			this.txtMasLoc.Size = ((System.Drawing.Size)(resources.GetObject("txtMasLoc.Size")));
			this.txtMasLoc.TabIndex = ((int)(resources.GetObject("txtMasLoc.TabIndex")));
			this.txtMasLoc.Text = resources.GetString("txtMasLoc.Text");
			this.txtMasLoc.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtMasLoc.TextAlign")));
			this.txtMasLoc.Visible = ((bool)(resources.GetObject("txtMasLoc.Visible")));
			this.txtMasLoc.WordWrap = ((bool)(resources.GetObject("txtMasLoc.WordWrap")));
			this.txtMasLoc.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtMasLoc_KeyDown);
			this.txtMasLoc.Validating += new System.ComponentModel.CancelEventHandler(this.txtMasLoc_Validating);
			// 
			// txtLocation
			// 
			this.txtLocation.AccessibleDescription = resources.GetString("txtLocation.AccessibleDescription");
			this.txtLocation.AccessibleName = resources.GetString("txtLocation.AccessibleName");
			this.txtLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtLocation.Anchor")));
			this.txtLocation.AutoSize = ((bool)(resources.GetObject("txtLocation.AutoSize")));
			this.txtLocation.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtLocation.BackgroundImage")));
			this.txtLocation.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtLocation.Dock")));
			this.txtLocation.Enabled = ((bool)(resources.GetObject("txtLocation.Enabled")));
			this.txtLocation.Font = ((System.Drawing.Font)(resources.GetObject("txtLocation.Font")));
			this.txtLocation.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtLocation.ImeMode")));
			this.txtLocation.Location = ((System.Drawing.Point)(resources.GetObject("txtLocation.Location")));
			this.txtLocation.MaxLength = ((int)(resources.GetObject("txtLocation.MaxLength")));
			this.txtLocation.Multiline = ((bool)(resources.GetObject("txtLocation.Multiline")));
			this.txtLocation.Name = "txtLocation";
			this.txtLocation.PasswordChar = ((char)(resources.GetObject("txtLocation.PasswordChar")));
			this.txtLocation.ReadOnly = true;
			this.txtLocation.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtLocation.RightToLeft")));
			this.txtLocation.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtLocation.ScrollBars")));
			this.txtLocation.Size = ((System.Drawing.Size)(resources.GetObject("txtLocation.Size")));
			this.txtLocation.TabIndex = ((int)(resources.GetObject("txtLocation.TabIndex")));
			this.txtLocation.Text = resources.GetString("txtLocation.Text");
			this.txtLocation.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtLocation.TextAlign")));
			this.txtLocation.Visible = ((bool)(resources.GetObject("txtLocation.Visible")));
			this.txtLocation.WordWrap = ((bool)(resources.GetObject("txtLocation.WordWrap")));
			// 
			// txtCategory
			// 
			this.txtCategory.AccessibleDescription = resources.GetString("txtCategory.AccessibleDescription");
			this.txtCategory.AccessibleName = resources.GetString("txtCategory.AccessibleName");
			this.txtCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtCategory.Anchor")));
			this.txtCategory.AutoSize = ((bool)(resources.GetObject("txtCategory.AutoSize")));
			this.txtCategory.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtCategory.BackgroundImage")));
			this.txtCategory.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtCategory.Dock")));
			this.txtCategory.Enabled = ((bool)(resources.GetObject("txtCategory.Enabled")));
			this.txtCategory.Font = ((System.Drawing.Font)(resources.GetObject("txtCategory.Font")));
			this.txtCategory.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtCategory.ImeMode")));
			this.txtCategory.Location = ((System.Drawing.Point)(resources.GetObject("txtCategory.Location")));
			this.txtCategory.MaxLength = ((int)(resources.GetObject("txtCategory.MaxLength")));
			this.txtCategory.Multiline = ((bool)(resources.GetObject("txtCategory.Multiline")));
			this.txtCategory.Name = "txtCategory";
			this.txtCategory.PasswordChar = ((char)(resources.GetObject("txtCategory.PasswordChar")));
			this.txtCategory.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtCategory.RightToLeft")));
			this.txtCategory.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtCategory.ScrollBars")));
			this.txtCategory.Size = ((System.Drawing.Size)(resources.GetObject("txtCategory.Size")));
			this.txtCategory.TabIndex = ((int)(resources.GetObject("txtCategory.TabIndex")));
			this.txtCategory.Text = resources.GetString("txtCategory.Text");
			this.txtCategory.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtCategory.TextAlign")));
			this.txtCategory.Visible = ((bool)(resources.GetObject("txtCategory.Visible")));
			this.txtCategory.WordWrap = ((bool)(resources.GetObject("txtCategory.WordWrap")));
			this.txtCategory.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCategory_KeyDown);
			this.txtCategory.Validating += new System.ComponentModel.CancelEventHandler(this.txtCategory_Validating);
			// 
			// lblMasLoc
			// 
			this.lblMasLoc.AccessibleDescription = resources.GetString("lblMasLoc.AccessibleDescription");
			this.lblMasLoc.AccessibleName = resources.GetString("lblMasLoc.AccessibleName");
			this.lblMasLoc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblMasLoc.Anchor")));
			this.lblMasLoc.AutoSize = ((bool)(resources.GetObject("lblMasLoc.AutoSize")));
			this.lblMasLoc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblMasLoc.Dock")));
			this.lblMasLoc.Enabled = ((bool)(resources.GetObject("lblMasLoc.Enabled")));
			this.lblMasLoc.Font = ((System.Drawing.Font)(resources.GetObject("lblMasLoc.Font")));
			this.lblMasLoc.ForeColor = System.Drawing.Color.Maroon;
			this.lblMasLoc.Image = ((System.Drawing.Image)(resources.GetObject("lblMasLoc.Image")));
			this.lblMasLoc.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMasLoc.ImageAlign")));
			this.lblMasLoc.ImageIndex = ((int)(resources.GetObject("lblMasLoc.ImageIndex")));
			this.lblMasLoc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblMasLoc.ImeMode")));
			this.lblMasLoc.Location = ((System.Drawing.Point)(resources.GetObject("lblMasLoc.Location")));
			this.lblMasLoc.Name = "lblMasLoc";
			this.lblMasLoc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblMasLoc.RightToLeft")));
			this.lblMasLoc.Size = ((System.Drawing.Size)(resources.GetObject("lblMasLoc.Size")));
			this.lblMasLoc.TabIndex = ((int)(resources.GetObject("lblMasLoc.TabIndex")));
			this.lblMasLoc.Text = resources.GetString("lblMasLoc.Text");
			this.lblMasLoc.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMasLoc.TextAlign")));
			this.lblMasLoc.Visible = ((bool)(resources.GetObject("lblMasLoc.Visible")));
			// 
			// lblLocation
			// 
			this.lblLocation.AccessibleDescription = resources.GetString("lblLocation.AccessibleDescription");
			this.lblLocation.AccessibleName = resources.GetString("lblLocation.AccessibleName");
			this.lblLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblLocation.Anchor")));
			this.lblLocation.AutoSize = ((bool)(resources.GetObject("lblLocation.AutoSize")));
			this.lblLocation.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblLocation.Dock")));
			this.lblLocation.Enabled = ((bool)(resources.GetObject("lblLocation.Enabled")));
			this.lblLocation.Font = ((System.Drawing.Font)(resources.GetObject("lblLocation.Font")));
			this.lblLocation.ForeColor = System.Drawing.Color.Maroon;
			this.lblLocation.Image = ((System.Drawing.Image)(resources.GetObject("lblLocation.Image")));
			this.lblLocation.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblLocation.ImageAlign")));
			this.lblLocation.ImageIndex = ((int)(resources.GetObject("lblLocation.ImageIndex")));
			this.lblLocation.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblLocation.ImeMode")));
			this.lblLocation.Location = ((System.Drawing.Point)(resources.GetObject("lblLocation.Location")));
			this.lblLocation.Name = "lblLocation";
			this.lblLocation.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblLocation.RightToLeft")));
			this.lblLocation.Size = ((System.Drawing.Size)(resources.GetObject("lblLocation.Size")));
			this.lblLocation.TabIndex = ((int)(resources.GetObject("lblLocation.TabIndex")));
			this.lblLocation.Text = resources.GetString("lblLocation.Text");
			this.lblLocation.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblLocation.TextAlign")));
			this.lblLocation.Visible = ((bool)(resources.GetObject("lblLocation.Visible")));
			this.lblLocation.Click += new System.EventHandler(this.lblLocation_Click);
			// 
			// lblCategory
			// 
			this.lblCategory.AccessibleDescription = resources.GetString("lblCategory.AccessibleDescription");
			this.lblCategory.AccessibleName = resources.GetString("lblCategory.AccessibleName");
			this.lblCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCategory.Anchor")));
			this.lblCategory.AutoSize = ((bool)(resources.GetObject("lblCategory.AutoSize")));
			this.lblCategory.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCategory.Dock")));
			this.lblCategory.Enabled = ((bool)(resources.GetObject("lblCategory.Enabled")));
			this.lblCategory.Font = ((System.Drawing.Font)(resources.GetObject("lblCategory.Font")));
			this.lblCategory.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblCategory.Image = ((System.Drawing.Image)(resources.GetObject("lblCategory.Image")));
			this.lblCategory.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCategory.ImageAlign")));
			this.lblCategory.ImageIndex = ((int)(resources.GetObject("lblCategory.ImageIndex")));
			this.lblCategory.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCategory.ImeMode")));
			this.lblCategory.Location = ((System.Drawing.Point)(resources.GetObject("lblCategory.Location")));
			this.lblCategory.Name = "lblCategory";
			this.lblCategory.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCategory.RightToLeft")));
			this.lblCategory.Size = ((System.Drawing.Size)(resources.GetObject("lblCategory.Size")));
			this.lblCategory.TabIndex = ((int)(resources.GetObject("lblCategory.TabIndex")));
			this.lblCategory.Text = resources.GetString("lblCategory.Text");
			this.lblCategory.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCategory.TextAlign")));
			this.lblCategory.Visible = ((bool)(resources.GetObject("lblCategory.Visible")));
			// 
			// btnMasLoc
			// 
			this.btnMasLoc.AccessibleDescription = resources.GetString("btnMasLoc.AccessibleDescription");
			this.btnMasLoc.AccessibleName = resources.GetString("btnMasLoc.AccessibleName");
			this.btnMasLoc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnMasLoc.Anchor")));
			this.btnMasLoc.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnMasLoc.BackgroundImage")));
			this.btnMasLoc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnMasLoc.Dock")));
			this.btnMasLoc.Enabled = ((bool)(resources.GetObject("btnMasLoc.Enabled")));
			this.btnMasLoc.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnMasLoc.FlatStyle")));
			this.btnMasLoc.Font = ((System.Drawing.Font)(resources.GetObject("btnMasLoc.Font")));
			this.btnMasLoc.Image = ((System.Drawing.Image)(resources.GetObject("btnMasLoc.Image")));
			this.btnMasLoc.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnMasLoc.ImageAlign")));
			this.btnMasLoc.ImageIndex = ((int)(resources.GetObject("btnMasLoc.ImageIndex")));
			this.btnMasLoc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnMasLoc.ImeMode")));
			this.btnMasLoc.Location = ((System.Drawing.Point)(resources.GetObject("btnMasLoc.Location")));
			this.btnMasLoc.Name = "btnMasLoc";
			this.btnMasLoc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnMasLoc.RightToLeft")));
			this.btnMasLoc.Size = ((System.Drawing.Size)(resources.GetObject("btnMasLoc.Size")));
			this.btnMasLoc.TabIndex = ((int)(resources.GetObject("btnMasLoc.TabIndex")));
			this.btnMasLoc.Text = resources.GetString("btnMasLoc.Text");
			this.btnMasLoc.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnMasLoc.TextAlign")));
			this.btnMasLoc.Visible = ((bool)(resources.GetObject("btnMasLoc.Visible")));
			this.btnMasLoc.Click += new System.EventHandler(this.btnMasLoc_Click);
			// 
			// btnCategory
			// 
			this.btnCategory.AccessibleDescription = resources.GetString("btnCategory.AccessibleDescription");
			this.btnCategory.AccessibleName = resources.GetString("btnCategory.AccessibleName");
			this.btnCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnCategory.Anchor")));
			this.btnCategory.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCategory.BackgroundImage")));
			this.btnCategory.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnCategory.Dock")));
			this.btnCategory.Enabled = ((bool)(resources.GetObject("btnCategory.Enabled")));
			this.btnCategory.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnCategory.FlatStyle")));
			this.btnCategory.Font = ((System.Drawing.Font)(resources.GetObject("btnCategory.Font")));
			this.btnCategory.Image = ((System.Drawing.Image)(resources.GetObject("btnCategory.Image")));
			this.btnCategory.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCategory.ImageAlign")));
			this.btnCategory.ImageIndex = ((int)(resources.GetObject("btnCategory.ImageIndex")));
			this.btnCategory.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnCategory.ImeMode")));
			this.btnCategory.Location = ((System.Drawing.Point)(resources.GetObject("btnCategory.Location")));
			this.btnCategory.Name = "btnCategory";
			this.btnCategory.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnCategory.RightToLeft")));
			this.btnCategory.Size = ((System.Drawing.Size)(resources.GetObject("btnCategory.Size")));
			this.btnCategory.TabIndex = ((int)(resources.GetObject("btnCategory.TabIndex")));
			this.btnCategory.Text = resources.GetString("btnCategory.Text");
			this.btnCategory.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCategory.TextAlign")));
			this.btnCategory.Visible = ((bool)(resources.GetObject("btnCategory.Visible")));
			this.btnCategory.Click += new System.EventHandler(this.btnCategory_Click);
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnHelp
			// 
			this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
			this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
			this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
			this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
			this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
			this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
			this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
			this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
			this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
			this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
			this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
			this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
			this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
			this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
			this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
			this.btnHelp.Text = resources.GetString("btnHelp.Text");
			this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
			this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
			// 
			// btnPrint
			// 
			this.btnPrint.AccessibleDescription = resources.GetString("btnPrint.AccessibleDescription");
			this.btnPrint.AccessibleName = resources.GetString("btnPrint.AccessibleName");
			this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnPrint.Anchor")));
			this.btnPrint.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnPrint.BackgroundImage")));
			this.btnPrint.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnPrint.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnPrint.Dock")));
			this.btnPrint.Enabled = ((bool)(resources.GetObject("btnPrint.Enabled")));
			this.btnPrint.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnPrint.FlatStyle")));
			this.btnPrint.Font = ((System.Drawing.Font)(resources.GetObject("btnPrint.Font")));
			this.btnPrint.Image = ((System.Drawing.Image)(resources.GetObject("btnPrint.Image")));
			this.btnPrint.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPrint.ImageAlign")));
			this.btnPrint.ImageIndex = ((int)(resources.GetObject("btnPrint.ImageIndex")));
			this.btnPrint.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnPrint.ImeMode")));
			this.btnPrint.Location = ((System.Drawing.Point)(resources.GetObject("btnPrint.Location")));
			this.btnPrint.Name = "btnPrint";
			this.btnPrint.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnPrint.RightToLeft")));
			this.btnPrint.Size = ((System.Drawing.Size)(resources.GetObject("btnPrint.Size")));
			this.btnPrint.TabIndex = ((int)(resources.GetObject("btnPrint.TabIndex")));
			this.btnPrint.Text = resources.GetString("btnPrint.Text");
			this.btnPrint.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPrint.TextAlign")));
			this.btnPrint.Visible = ((bool)(resources.GetObject("btnPrint.Visible")));
			this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
			// 
			// dtmFromDate
			// 
			this.dtmFromDate.AcceptsEscape = ((bool)(resources.GetObject("dtmFromDate.AcceptsEscape")));
			this.dtmFromDate.AccessibleDescription = resources.GetString("dtmFromDate.AccessibleDescription");
			this.dtmFromDate.AccessibleName = resources.GetString("dtmFromDate.AccessibleName");
			this.dtmFromDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmFromDate.Anchor")));
			this.dtmFromDate.AutoSize = ((bool)(resources.GetObject("dtmFromDate.AutoSize")));
			this.dtmFromDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromDate.BackgroundImage")));
			this.dtmFromDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmFromDate.BorderStyle")));
			// 
			// dtmFromDate.Calendar
			// 
			this.dtmFromDate.Calendar.AccessibleDescription = resources.GetString("dtmFromDate.Calendar.AccessibleDescription");
			this.dtmFromDate.Calendar.AccessibleName = resources.GetString("dtmFromDate.Calendar.AccessibleName");
			this.dtmFromDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.AnnuallyBoldedDates")));
			this.dtmFromDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromDate.Calendar.BackgroundImage")));
			this.dtmFromDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.BoldedDates")));
			this.dtmFromDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmFromDate.Calendar.CalendarDimensions")));
			this.dtmFromDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmFromDate.Calendar.Enabled")));
			this.dtmFromDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmFromDate.Calendar.FirstDayOfWeek")));
			this.dtmFromDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromDate.Calendar.Font")));
			this.dtmFromDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromDate.Calendar.ImeMode")));
			this.dtmFromDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.MonthlyBoldedDates")));
			this.dtmFromDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromDate.Calendar.RightToLeft")));
			this.dtmFromDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowClearButton")));
			this.dtmFromDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowTodayButton")));
			this.dtmFromDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowWeekNumbers")));
			this.dtmFromDate.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.CaseSensitive")));
			this.dtmFromDate.Culture = ((int)(resources.GetObject("dtmFromDate.Culture")));
			this.dtmFromDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmFromDate.CurrentTimeZone")));
			this.dtmFromDate.CustomFormat = resources.GetString("dtmFromDate.CustomFormat");
			this.dtmFromDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmFromDate.DaylightTimeAdjustment")));
			this.dtmFromDate.DisplayFormat.CustomFormat = resources.GetString("dtmFromDate.DisplayFormat.CustomFormat");
			this.dtmFromDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.DisplayFormat.FormatType")));
			this.dtmFromDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromDate.DisplayFormat.Inherit")));
			this.dtmFromDate.DisplayFormat.NullText = resources.GetString("dtmFromDate.DisplayFormat.NullText");
			this.dtmFromDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.DisplayFormat.TrimEnd")));
			this.dtmFromDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmFromDate.DisplayFormat.TrimStart")));
			this.dtmFromDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmFromDate.Dock")));
			this.dtmFromDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmFromDate.DropDownFormAlign")));
			this.dtmFromDate.EditFormat.CustomFormat = resources.GetString("dtmFromDate.EditFormat.CustomFormat");
			this.dtmFromDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.EditFormat.FormatType")));
			this.dtmFromDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromDate.EditFormat.Inherit")));
			this.dtmFromDate.EditFormat.NullText = resources.GetString("dtmFromDate.EditFormat.NullText");
			this.dtmFromDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.EditFormat.TrimEnd")));
			this.dtmFromDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmFromDate.EditFormat.TrimStart")));
			this.dtmFromDate.EditMask = resources.GetString("dtmFromDate.EditMask");
			this.dtmFromDate.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.EmptyAsNull")));
			this.dtmFromDate.Enabled = ((bool)(resources.GetObject("dtmFromDate.Enabled")));
			this.dtmFromDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmFromDate.ErrorInfo.BeepOnError")));
			this.dtmFromDate.ErrorInfo.ErrorMessage = resources.GetString("dtmFromDate.ErrorInfo.ErrorMessage");
			this.dtmFromDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmFromDate.ErrorInfo.ErrorMessageCaption");
			this.dtmFromDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmFromDate.ErrorInfo.ShowErrorMessage")));
			this.dtmFromDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmFromDate.ErrorInfo.ValueOnError")));
			this.dtmFromDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromDate.Font")));
			this.dtmFromDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.FormatType")));
			this.dtmFromDate.GapHeight = ((int)(resources.GetObject("dtmFromDate.GapHeight")));
			this.dtmFromDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmFromDate.GMTOffset")));
			this.dtmFromDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromDate.ImeMode")));
			this.dtmFromDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmFromDate.InitialSelection")));
			this.dtmFromDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmFromDate.Location")));
			this.dtmFromDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmFromDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.CaseSensitive")));
			this.dtmFromDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.CopyWithLiterals")));
			this.dtmFromDate.MaskInfo.EditMask = resources.GetString("dtmFromDate.MaskInfo.EditMask");
			this.dtmFromDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.EmptyAsNull")));
			this.dtmFromDate.MaskInfo.ErrorMessage = resources.GetString("dtmFromDate.MaskInfo.ErrorMessage");
			this.dtmFromDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmFromDate.MaskInfo.Inherit")));
			this.dtmFromDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmFromDate.MaskInfo.PromptChar")));
			this.dtmFromDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmFromDate.MaskInfo.ShowLiterals")));
			this.dtmFromDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmFromDate.MaskInfo.StoredEmptyChar")));
			this.dtmFromDate.MaxLength = ((int)(resources.GetObject("dtmFromDate.MaxLength")));
			this.dtmFromDate.Name = "dtmFromDate";
			this.dtmFromDate.NullText = resources.GetString("dtmFromDate.NullText");
			this.dtmFromDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.CaseSensitive")));
			this.dtmFromDate.ParseInfo.CustomFormat = resources.GetString("dtmFromDate.ParseInfo.CustomFormat");
			this.dtmFromDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmFromDate.ParseInfo.DateTimeStyle")));
			this.dtmFromDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.EmptyAsNull")));
			this.dtmFromDate.ParseInfo.ErrorMessage = resources.GetString("dtmFromDate.ParseInfo.ErrorMessage");
			this.dtmFromDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.ParseInfo.FormatType")));
			this.dtmFromDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmFromDate.ParseInfo.Inherit")));
			this.dtmFromDate.ParseInfo.NullText = resources.GetString("dtmFromDate.ParseInfo.NullText");
			this.dtmFromDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.TrimEnd")));
			this.dtmFromDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.TrimStart")));
			this.dtmFromDate.PasswordChar = ((char)(resources.GetObject("dtmFromDate.PasswordChar")));
			this.dtmFromDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.PostValidation.CaseSensitive")));
			this.dtmFromDate.PostValidation.ErrorMessage = resources.GetString("dtmFromDate.PostValidation.ErrorMessage");
			this.dtmFromDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmFromDate.PostValidation.Inherit")));
			this.dtmFromDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmFromDate.PostValidation.Validation")));
			this.dtmFromDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmFromDate.PostValidation.Values")));
			this.dtmFromDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmFromDate.PostValidation.ValuesExcluded")));
			this.dtmFromDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.PreValidation.CaseSensitive")));
			this.dtmFromDate.PreValidation.ErrorMessage = resources.GetString("dtmFromDate.PreValidation.ErrorMessage");
			this.dtmFromDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmFromDate.PreValidation.Inherit")));
			this.dtmFromDate.PreValidation.ItemSeparator = resources.GetString("dtmFromDate.PreValidation.ItemSeparator");
			this.dtmFromDate.PreValidation.PatternString = resources.GetString("dtmFromDate.PreValidation.PatternString");
			this.dtmFromDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmFromDate.PreValidation.RegexOptions")));
			this.dtmFromDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.PreValidation.TrimEnd")));
			this.dtmFromDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmFromDate.PreValidation.TrimStart")));
			this.dtmFromDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmFromDate.PreValidation.Validation")));
			this.dtmFromDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromDate.RightToLeft")));
			this.dtmFromDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmFromDate.ShowFocusRectangle")));
			this.dtmFromDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmFromDate.Size")));
			this.dtmFromDate.TabIndex = ((int)(resources.GetObject("dtmFromDate.TabIndex")));
			this.dtmFromDate.Tag = ((object)(resources.GetObject("dtmFromDate.Tag")));
			this.dtmFromDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmFromDate.TextAlign")));
			this.dtmFromDate.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.TrimEnd")));
			this.dtmFromDate.TrimStart = ((bool)(resources.GetObject("dtmFromDate.TrimStart")));
			this.dtmFromDate.UserCultureOverride = ((bool)(resources.GetObject("dtmFromDate.UserCultureOverride")));
			this.dtmFromDate.Value = ((object)(resources.GetObject("dtmFromDate.Value")));
			this.dtmFromDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmFromDate.VerticalAlign")));
			this.dtmFromDate.Visible = ((bool)(resources.GetObject("dtmFromDate.Visible")));
			this.dtmFromDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmFromDate.VisibleButtons")));
			this.dtmFromDate.Validating += new System.ComponentModel.CancelEventHandler(this.dtmFromDate_Validating);
			// 
			// lblFromDate
			// 
			this.lblFromDate.AccessibleDescription = resources.GetString("lblFromDate.AccessibleDescription");
			this.lblFromDate.AccessibleName = resources.GetString("lblFromDate.AccessibleName");
			this.lblFromDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblFromDate.Anchor")));
			this.lblFromDate.AutoSize = ((bool)(resources.GetObject("lblFromDate.AutoSize")));
			this.lblFromDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblFromDate.Dock")));
			this.lblFromDate.Enabled = ((bool)(resources.GetObject("lblFromDate.Enabled")));
			this.lblFromDate.Font = ((System.Drawing.Font)(resources.GetObject("lblFromDate.Font")));
			this.lblFromDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblFromDate.Image = ((System.Drawing.Image)(resources.GetObject("lblFromDate.Image")));
			this.lblFromDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromDate.ImageAlign")));
			this.lblFromDate.ImageIndex = ((int)(resources.GetObject("lblFromDate.ImageIndex")));
			this.lblFromDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblFromDate.ImeMode")));
			this.lblFromDate.Location = ((System.Drawing.Point)(resources.GetObject("lblFromDate.Location")));
			this.lblFromDate.Name = "lblFromDate";
			this.lblFromDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblFromDate.RightToLeft")));
			this.lblFromDate.Size = ((System.Drawing.Size)(resources.GetObject("lblFromDate.Size")));
			this.lblFromDate.TabIndex = ((int)(resources.GetObject("lblFromDate.TabIndex")));
			this.lblFromDate.Text = resources.GetString("lblFromDate.Text");
			this.lblFromDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromDate.TextAlign")));
			this.lblFromDate.Visible = ((bool)(resources.GetObject("lblFromDate.Visible")));
			// 
			// dtmToDate
			// 
			this.dtmToDate.AcceptsEscape = ((bool)(resources.GetObject("dtmToDate.AcceptsEscape")));
			this.dtmToDate.AccessibleDescription = resources.GetString("dtmToDate.AccessibleDescription");
			this.dtmToDate.AccessibleName = resources.GetString("dtmToDate.AccessibleName");
			this.dtmToDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmToDate.Anchor")));
			this.dtmToDate.AutoSize = ((bool)(resources.GetObject("dtmToDate.AutoSize")));
			this.dtmToDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToDate.BackgroundImage")));
			this.dtmToDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmToDate.BorderStyle")));
			// 
			// dtmToDate.Calendar
			// 
			this.dtmToDate.Calendar.AccessibleDescription = resources.GetString("dtmToDate.Calendar.AccessibleDescription");
			this.dtmToDate.Calendar.AccessibleName = resources.GetString("dtmToDate.Calendar.AccessibleName");
			this.dtmToDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.AnnuallyBoldedDates")));
			this.dtmToDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToDate.Calendar.BackgroundImage")));
			this.dtmToDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.BoldedDates")));
			this.dtmToDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmToDate.Calendar.CalendarDimensions")));
			this.dtmToDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmToDate.Calendar.Enabled")));
			this.dtmToDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmToDate.Calendar.FirstDayOfWeek")));
			this.dtmToDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmToDate.Calendar.Font")));
			this.dtmToDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToDate.Calendar.ImeMode")));
			this.dtmToDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.MonthlyBoldedDates")));
			this.dtmToDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToDate.Calendar.RightToLeft")));
			this.dtmToDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowClearButton")));
			this.dtmToDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowTodayButton")));
			this.dtmToDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowWeekNumbers")));
			this.dtmToDate.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.CaseSensitive")));
			this.dtmToDate.Culture = ((int)(resources.GetObject("dtmToDate.Culture")));
			this.dtmToDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmToDate.CurrentTimeZone")));
			this.dtmToDate.CustomFormat = resources.GetString("dtmToDate.CustomFormat");
			this.dtmToDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmToDate.DaylightTimeAdjustment")));
			this.dtmToDate.DisplayFormat.CustomFormat = resources.GetString("dtmToDate.DisplayFormat.CustomFormat");
			this.dtmToDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.DisplayFormat.FormatType")));
			this.dtmToDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToDate.DisplayFormat.Inherit")));
			this.dtmToDate.DisplayFormat.NullText = resources.GetString("dtmToDate.DisplayFormat.NullText");
			this.dtmToDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmToDate.DisplayFormat.TrimEnd")));
			this.dtmToDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmToDate.DisplayFormat.TrimStart")));
			this.dtmToDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmToDate.Dock")));
			this.dtmToDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmToDate.DropDownFormAlign")));
			this.dtmToDate.EditFormat.CustomFormat = resources.GetString("dtmToDate.EditFormat.CustomFormat");
			this.dtmToDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.EditFormat.FormatType")));
			this.dtmToDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToDate.EditFormat.Inherit")));
			this.dtmToDate.EditFormat.NullText = resources.GetString("dtmToDate.EditFormat.NullText");
			this.dtmToDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmToDate.EditFormat.TrimEnd")));
			this.dtmToDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmToDate.EditFormat.TrimStart")));
			this.dtmToDate.EditMask = resources.GetString("dtmToDate.EditMask");
			this.dtmToDate.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.EmptyAsNull")));
			this.dtmToDate.Enabled = ((bool)(resources.GetObject("dtmToDate.Enabled")));
			this.dtmToDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmToDate.ErrorInfo.BeepOnError")));
			this.dtmToDate.ErrorInfo.ErrorMessage = resources.GetString("dtmToDate.ErrorInfo.ErrorMessage");
			this.dtmToDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmToDate.ErrorInfo.ErrorMessageCaption");
			this.dtmToDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmToDate.ErrorInfo.ShowErrorMessage")));
			this.dtmToDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmToDate.ErrorInfo.ValueOnError")));
			this.dtmToDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmToDate.Font")));
			this.dtmToDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.FormatType")));
			this.dtmToDate.GapHeight = ((int)(resources.GetObject("dtmToDate.GapHeight")));
			this.dtmToDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmToDate.GMTOffset")));
			this.dtmToDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToDate.ImeMode")));
			this.dtmToDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmToDate.InitialSelection")));
			this.dtmToDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmToDate.Location")));
			this.dtmToDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmToDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmToDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.MaskInfo.CaseSensitive")));
			this.dtmToDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmToDate.MaskInfo.CopyWithLiterals")));
			this.dtmToDate.MaskInfo.EditMask = resources.GetString("dtmToDate.MaskInfo.EditMask");
			this.dtmToDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.MaskInfo.EmptyAsNull")));
			this.dtmToDate.MaskInfo.ErrorMessage = resources.GetString("dtmToDate.MaskInfo.ErrorMessage");
			this.dtmToDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmToDate.MaskInfo.Inherit")));
			this.dtmToDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmToDate.MaskInfo.PromptChar")));
			this.dtmToDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmToDate.MaskInfo.ShowLiterals")));
			this.dtmToDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmToDate.MaskInfo.StoredEmptyChar")));
			this.dtmToDate.MaxLength = ((int)(resources.GetObject("dtmToDate.MaxLength")));
			this.dtmToDate.Name = "dtmToDate";
			this.dtmToDate.NullText = resources.GetString("dtmToDate.NullText");
			this.dtmToDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.ParseInfo.CaseSensitive")));
			this.dtmToDate.ParseInfo.CustomFormat = resources.GetString("dtmToDate.ParseInfo.CustomFormat");
			this.dtmToDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmToDate.ParseInfo.DateTimeStyle")));
			this.dtmToDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.ParseInfo.EmptyAsNull")));
			this.dtmToDate.ParseInfo.ErrorMessage = resources.GetString("dtmToDate.ParseInfo.ErrorMessage");
			this.dtmToDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.ParseInfo.FormatType")));
			this.dtmToDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmToDate.ParseInfo.Inherit")));
			this.dtmToDate.ParseInfo.NullText = resources.GetString("dtmToDate.ParseInfo.NullText");
			this.dtmToDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmToDate.ParseInfo.TrimEnd")));
			this.dtmToDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmToDate.ParseInfo.TrimStart")));
			this.dtmToDate.PasswordChar = ((char)(resources.GetObject("dtmToDate.PasswordChar")));
			this.dtmToDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.PostValidation.CaseSensitive")));
			this.dtmToDate.PostValidation.ErrorMessage = resources.GetString("dtmToDate.PostValidation.ErrorMessage");
			this.dtmToDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmToDate.PostValidation.Inherit")));
			this.dtmToDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmToDate.PostValidation.Validation")));
			this.dtmToDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmToDate.PostValidation.Values")));
			this.dtmToDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmToDate.PostValidation.ValuesExcluded")));
			this.dtmToDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.PreValidation.CaseSensitive")));
			this.dtmToDate.PreValidation.ErrorMessage = resources.GetString("dtmToDate.PreValidation.ErrorMessage");
			this.dtmToDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmToDate.PreValidation.Inherit")));
			this.dtmToDate.PreValidation.ItemSeparator = resources.GetString("dtmToDate.PreValidation.ItemSeparator");
			this.dtmToDate.PreValidation.PatternString = resources.GetString("dtmToDate.PreValidation.PatternString");
			this.dtmToDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmToDate.PreValidation.RegexOptions")));
			this.dtmToDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmToDate.PreValidation.TrimEnd")));
			this.dtmToDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmToDate.PreValidation.TrimStart")));
			this.dtmToDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmToDate.PreValidation.Validation")));
			this.dtmToDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToDate.RightToLeft")));
			this.dtmToDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmToDate.ShowFocusRectangle")));
			this.dtmToDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmToDate.Size")));
			this.dtmToDate.TabIndex = ((int)(resources.GetObject("dtmToDate.TabIndex")));
			this.dtmToDate.Tag = ((object)(resources.GetObject("dtmToDate.Tag")));
			this.dtmToDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmToDate.TextAlign")));
			this.dtmToDate.TrimEnd = ((bool)(resources.GetObject("dtmToDate.TrimEnd")));
			this.dtmToDate.TrimStart = ((bool)(resources.GetObject("dtmToDate.TrimStart")));
			this.dtmToDate.UserCultureOverride = ((bool)(resources.GetObject("dtmToDate.UserCultureOverride")));
			this.dtmToDate.Value = ((object)(resources.GetObject("dtmToDate.Value")));
			this.dtmToDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmToDate.VerticalAlign")));
			this.dtmToDate.Visible = ((bool)(resources.GetObject("dtmToDate.Visible")));
			this.dtmToDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmToDate.VisibleButtons")));
			this.dtmToDate.Validating += new System.ComponentModel.CancelEventHandler(this.dtmToDate_Validating);
			// 
			// lblToDate
			// 
			this.lblToDate.AccessibleDescription = resources.GetString("lblToDate.AccessibleDescription");
			this.lblToDate.AccessibleName = resources.GetString("lblToDate.AccessibleName");
			this.lblToDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblToDate.Anchor")));
			this.lblToDate.AutoSize = ((bool)(resources.GetObject("lblToDate.AutoSize")));
			this.lblToDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblToDate.Dock")));
			this.lblToDate.Enabled = ((bool)(resources.GetObject("lblToDate.Enabled")));
			this.lblToDate.Font = ((System.Drawing.Font)(resources.GetObject("lblToDate.Font")));
			this.lblToDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblToDate.Image = ((System.Drawing.Image)(resources.GetObject("lblToDate.Image")));
			this.lblToDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToDate.ImageAlign")));
			this.lblToDate.ImageIndex = ((int)(resources.GetObject("lblToDate.ImageIndex")));
			this.lblToDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblToDate.ImeMode")));
			this.lblToDate.Location = ((System.Drawing.Point)(resources.GetObject("lblToDate.Location")));
			this.lblToDate.Name = "lblToDate";
			this.lblToDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblToDate.RightToLeft")));
			this.lblToDate.Size = ((System.Drawing.Size)(resources.GetObject("lblToDate.Size")));
			this.lblToDate.TabIndex = ((int)(resources.GetObject("lblToDate.TabIndex")));
			this.lblToDate.Text = resources.GetString("lblToDate.Text");
			this.lblToDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToDate.TextAlign")));
			this.lblToDate.Visible = ((bool)(resources.GetObject("lblToDate.Visible")));
			// 
			// btnBin
			// 
			this.btnBin.AccessibleDescription = resources.GetString("btnBin.AccessibleDescription");
			this.btnBin.AccessibleName = resources.GetString("btnBin.AccessibleName");
			this.btnBin.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnBin.Anchor")));
			this.btnBin.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnBin.BackgroundImage")));
			this.btnBin.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnBin.Dock")));
			this.btnBin.Enabled = ((bool)(resources.GetObject("btnBin.Enabled")));
			this.btnBin.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnBin.FlatStyle")));
			this.btnBin.Font = ((System.Drawing.Font)(resources.GetObject("btnBin.Font")));
			this.btnBin.Image = ((System.Drawing.Image)(resources.GetObject("btnBin.Image")));
			this.btnBin.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnBin.ImageAlign")));
			this.btnBin.ImageIndex = ((int)(resources.GetObject("btnBin.ImageIndex")));
			this.btnBin.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnBin.ImeMode")));
			this.btnBin.Location = ((System.Drawing.Point)(resources.GetObject("btnBin.Location")));
			this.btnBin.Name = "btnBin";
			this.btnBin.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnBin.RightToLeft")));
			this.btnBin.Size = ((System.Drawing.Size)(resources.GetObject("btnBin.Size")));
			this.btnBin.TabIndex = ((int)(resources.GetObject("btnBin.TabIndex")));
			this.btnBin.Text = resources.GetString("btnBin.Text");
			this.btnBin.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnBin.TextAlign")));
			this.btnBin.Visible = ((bool)(resources.GetObject("btnBin.Visible")));
			this.btnBin.Click += new System.EventHandler(this.btnBin_Click);
			// 
			// txtBin
			// 
			this.txtBin.AccessibleDescription = resources.GetString("txtBin.AccessibleDescription");
			this.txtBin.AccessibleName = resources.GetString("txtBin.AccessibleName");
			this.txtBin.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtBin.Anchor")));
			this.txtBin.AutoSize = ((bool)(resources.GetObject("txtBin.AutoSize")));
			this.txtBin.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtBin.BackgroundImage")));
			this.txtBin.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtBin.Dock")));
			this.txtBin.Enabled = ((bool)(resources.GetObject("txtBin.Enabled")));
			this.txtBin.Font = ((System.Drawing.Font)(resources.GetObject("txtBin.Font")));
			this.txtBin.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtBin.ImeMode")));
			this.txtBin.Location = ((System.Drawing.Point)(resources.GetObject("txtBin.Location")));
			this.txtBin.MaxLength = ((int)(resources.GetObject("txtBin.MaxLength")));
			this.txtBin.Multiline = ((bool)(resources.GetObject("txtBin.Multiline")));
			this.txtBin.Name = "txtBin";
			this.txtBin.PasswordChar = ((char)(resources.GetObject("txtBin.PasswordChar")));
			this.txtBin.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtBin.RightToLeft")));
			this.txtBin.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtBin.ScrollBars")));
			this.txtBin.Size = ((System.Drawing.Size)(resources.GetObject("txtBin.Size")));
			this.txtBin.TabIndex = ((int)(resources.GetObject("txtBin.TabIndex")));
			this.txtBin.Text = resources.GetString("txtBin.Text");
			this.txtBin.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtBin.TextAlign")));
			this.txtBin.Visible = ((bool)(resources.GetObject("txtBin.Visible")));
			this.txtBin.WordWrap = ((bool)(resources.GetObject("txtBin.WordWrap")));
			this.txtBin.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtBin_KeyDown);
			this.txtBin.Validating += new System.ComponentModel.CancelEventHandler(this.txtBin_Validating);
			// 
			// lblBin
			// 
			this.lblBin.AccessibleDescription = resources.GetString("lblBin.AccessibleDescription");
			this.lblBin.AccessibleName = resources.GetString("lblBin.AccessibleName");
			this.lblBin.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblBin.Anchor")));
			this.lblBin.AutoSize = ((bool)(resources.GetObject("lblBin.AutoSize")));
			this.lblBin.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblBin.Dock")));
			this.lblBin.Enabled = ((bool)(resources.GetObject("lblBin.Enabled")));
			this.lblBin.Font = ((System.Drawing.Font)(resources.GetObject("lblBin.Font")));
			this.lblBin.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblBin.Image = ((System.Drawing.Image)(resources.GetObject("lblBin.Image")));
			this.lblBin.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblBin.ImageAlign")));
			this.lblBin.ImageIndex = ((int)(resources.GetObject("lblBin.ImageIndex")));
			this.lblBin.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblBin.ImeMode")));
			this.lblBin.Location = ((System.Drawing.Point)(resources.GetObject("lblBin.Location")));
			this.lblBin.Name = "lblBin";
			this.lblBin.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblBin.RightToLeft")));
			this.lblBin.Size = ((System.Drawing.Size)(resources.GetObject("lblBin.Size")));
			this.lblBin.TabIndex = ((int)(resources.GetObject("lblBin.TabIndex")));
			this.lblBin.Text = resources.GetString("lblBin.Text");
			this.lblBin.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblBin.TextAlign")));
			this.lblBin.Visible = ((bool)(resources.GetObject("lblBin.Visible")));
			// 
			// btnSource
			// 
			this.btnSource.AccessibleDescription = resources.GetString("btnSource.AccessibleDescription");
			this.btnSource.AccessibleName = resources.GetString("btnSource.AccessibleName");
			this.btnSource.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSource.Anchor")));
			this.btnSource.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSource.BackgroundImage")));
			this.btnSource.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSource.Dock")));
			this.btnSource.Enabled = ((bool)(resources.GetObject("btnSource.Enabled")));
			this.btnSource.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSource.FlatStyle")));
			this.btnSource.Font = ((System.Drawing.Font)(resources.GetObject("btnSource.Font")));
			this.btnSource.Image = ((System.Drawing.Image)(resources.GetObject("btnSource.Image")));
			this.btnSource.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSource.ImageAlign")));
			this.btnSource.ImageIndex = ((int)(resources.GetObject("btnSource.ImageIndex")));
			this.btnSource.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSource.ImeMode")));
			this.btnSource.Location = ((System.Drawing.Point)(resources.GetObject("btnSource.Location")));
			this.btnSource.Name = "btnSource";
			this.btnSource.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSource.RightToLeft")));
			this.btnSource.Size = ((System.Drawing.Size)(resources.GetObject("btnSource.Size")));
			this.btnSource.TabIndex = ((int)(resources.GetObject("btnSource.TabIndex")));
			this.btnSource.Text = resources.GetString("btnSource.Text");
			this.btnSource.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSource.TextAlign")));
			this.btnSource.Visible = ((bool)(resources.GetObject("btnSource.Visible")));
			this.btnSource.Click += new System.EventHandler(this.btnSource_Click);
			// 
			// txtSource
			// 
			this.txtSource.AccessibleDescription = resources.GetString("txtSource.AccessibleDescription");
			this.txtSource.AccessibleName = resources.GetString("txtSource.AccessibleName");
			this.txtSource.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtSource.Anchor")));
			this.txtSource.AutoSize = ((bool)(resources.GetObject("txtSource.AutoSize")));
			this.txtSource.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtSource.BackgroundImage")));
			this.txtSource.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtSource.Dock")));
			this.txtSource.Enabled = ((bool)(resources.GetObject("txtSource.Enabled")));
			this.txtSource.Font = ((System.Drawing.Font)(resources.GetObject("txtSource.Font")));
			this.txtSource.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtSource.ImeMode")));
			this.txtSource.Location = ((System.Drawing.Point)(resources.GetObject("txtSource.Location")));
			this.txtSource.MaxLength = ((int)(resources.GetObject("txtSource.MaxLength")));
			this.txtSource.Multiline = ((bool)(resources.GetObject("txtSource.Multiline")));
			this.txtSource.Name = "txtSource";
			this.txtSource.PasswordChar = ((char)(resources.GetObject("txtSource.PasswordChar")));
			this.txtSource.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtSource.RightToLeft")));
			this.txtSource.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtSource.ScrollBars")));
			this.txtSource.Size = ((System.Drawing.Size)(resources.GetObject("txtSource.Size")));
			this.txtSource.TabIndex = ((int)(resources.GetObject("txtSource.TabIndex")));
			this.txtSource.Text = resources.GetString("txtSource.Text");
			this.txtSource.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtSource.TextAlign")));
			this.txtSource.Visible = ((bool)(resources.GetObject("txtSource.Visible")));
			this.txtSource.WordWrap = ((bool)(resources.GetObject("txtSource.WordWrap")));
			this.txtSource.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtSource_KeyDown);
			this.txtSource.Validating += new System.ComponentModel.CancelEventHandler(this.txtSource_Validating);
			// 
			// lblSource
			// 
			this.lblSource.AccessibleDescription = resources.GetString("lblSource.AccessibleDescription");
			this.lblSource.AccessibleName = resources.GetString("lblSource.AccessibleName");
			this.lblSource.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblSource.Anchor")));
			this.lblSource.AutoSize = ((bool)(resources.GetObject("lblSource.AutoSize")));
			this.lblSource.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblSource.Dock")));
			this.lblSource.Enabled = ((bool)(resources.GetObject("lblSource.Enabled")));
			this.lblSource.Font = ((System.Drawing.Font)(resources.GetObject("lblSource.Font")));
			this.lblSource.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblSource.Image = ((System.Drawing.Image)(resources.GetObject("lblSource.Image")));
			this.lblSource.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblSource.ImageAlign")));
			this.lblSource.ImageIndex = ((int)(resources.GetObject("lblSource.ImageIndex")));
			this.lblSource.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblSource.ImeMode")));
			this.lblSource.Location = ((System.Drawing.Point)(resources.GetObject("lblSource.Location")));
			this.lblSource.Name = "lblSource";
			this.lblSource.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblSource.RightToLeft")));
			this.lblSource.Size = ((System.Drawing.Size)(resources.GetObject("lblSource.Size")));
			this.lblSource.TabIndex = ((int)(resources.GetObject("lblSource.TabIndex")));
			this.lblSource.Text = resources.GetString("lblSource.Text");
			this.lblSource.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblSource.TextAlign")));
			this.lblSource.Visible = ((bool)(resources.GetObject("lblSource.Visible")));
			// 
			// dgrdData
			// 
			this.dgrdData.AccessibleDescription = resources.GetString("dgrdData.AccessibleDescription");
			this.dgrdData.AccessibleName = resources.GetString("dgrdData.AccessibleName");
			this.dgrdData.AllowAddNew = ((bool)(resources.GetObject("dgrdData.AllowAddNew")));
			this.dgrdData.AllowArrows = ((bool)(resources.GetObject("dgrdData.AllowArrows")));
			this.dgrdData.AllowColMove = ((bool)(resources.GetObject("dgrdData.AllowColMove")));
			this.dgrdData.AllowColSelect = ((bool)(resources.GetObject("dgrdData.AllowColSelect")));
			this.dgrdData.AllowDelete = ((bool)(resources.GetObject("dgrdData.AllowDelete")));
			this.dgrdData.AllowDrag = ((bool)(resources.GetObject("dgrdData.AllowDrag")));
			this.dgrdData.AllowFilter = ((bool)(resources.GetObject("dgrdData.AllowFilter")));
			this.dgrdData.AllowHorizontalSplit = ((bool)(resources.GetObject("dgrdData.AllowHorizontalSplit")));
			this.dgrdData.AllowRowSelect = ((bool)(resources.GetObject("dgrdData.AllowRowSelect")));
			this.dgrdData.AllowSort = ((bool)(resources.GetObject("dgrdData.AllowSort")));
			this.dgrdData.AllowUpdate = ((bool)(resources.GetObject("dgrdData.AllowUpdate")));
			this.dgrdData.AllowUpdateOnBlur = ((bool)(resources.GetObject("dgrdData.AllowUpdateOnBlur")));
			this.dgrdData.AllowVerticalSplit = ((bool)(resources.GetObject("dgrdData.AllowVerticalSplit")));
			this.dgrdData.AlternatingRows = ((bool)(resources.GetObject("dgrdData.AlternatingRows")));
			this.dgrdData.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dgrdData.Anchor")));
			this.dgrdData.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dgrdData.BackgroundImage")));
			this.dgrdData.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dgrdData.BorderStyle")));
			this.dgrdData.Caption = resources.GetString("dgrdData.Caption");
			this.dgrdData.CaptionHeight = ((int)(resources.GetObject("dgrdData.CaptionHeight")));
			this.dgrdData.CellTipsDelay = ((int)(resources.GetObject("dgrdData.CellTipsDelay")));
			this.dgrdData.CellTipsWidth = ((int)(resources.GetObject("dgrdData.CellTipsWidth")));
			this.dgrdData.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("dgrdData.ChildGrid")));
			this.dgrdData.CollapseColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.CollapseColor")));
			this.dgrdData.ColumnFooters = ((bool)(resources.GetObject("dgrdData.ColumnFooters")));
			this.dgrdData.ColumnHeaders = ((bool)(resources.GetObject("dgrdData.ColumnHeaders")));
			this.dgrdData.DefColWidth = ((int)(resources.GetObject("dgrdData.DefColWidth")));
			this.dgrdData.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dgrdData.Dock")));
			this.dgrdData.EditDropDown = ((bool)(resources.GetObject("dgrdData.EditDropDown")));
			this.dgrdData.EmptyRows = ((bool)(resources.GetObject("dgrdData.EmptyRows")));
			this.dgrdData.Enabled = ((bool)(resources.GetObject("dgrdData.Enabled")));
			this.dgrdData.ExpandColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.ExpandColor")));
			this.dgrdData.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("dgrdData.ExposeCellMode")));
			this.dgrdData.ExtendRightColumn = ((bool)(resources.GetObject("dgrdData.ExtendRightColumn")));
			this.dgrdData.FetchRowStyles = ((bool)(resources.GetObject("dgrdData.FetchRowStyles")));
			this.dgrdData.FilterBar = ((bool)(resources.GetObject("dgrdData.FilterBar")));
			this.dgrdData.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("dgrdData.FlatStyle")));
			this.dgrdData.Font = ((System.Drawing.Font)(resources.GetObject("dgrdData.Font")));
			this.dgrdData.GroupByAreaVisible = ((bool)(resources.GetObject("dgrdData.GroupByAreaVisible")));
			this.dgrdData.GroupByCaption = resources.GetString("dgrdData.GroupByCaption");
			this.dgrdData.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
			this.dgrdData.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dgrdData.ImeMode")));
			this.dgrdData.LinesPerRow = ((int)(resources.GetObject("dgrdData.LinesPerRow")));
			this.dgrdData.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.Location")));
			this.dgrdData.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
			this.dgrdData.Name = "dgrdData";
			this.dgrdData.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureAddnewRow")));
			this.dgrdData.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureCurrentRow")));
			this.dgrdData.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFilterBar")));
			this.dgrdData.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFooterRow")));
			this.dgrdData.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureHeaderRow")));
			this.dgrdData.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureModifiedRow")));
			this.dgrdData.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureStandardRow")));
			this.dgrdData.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("dgrdData.PreviewInfo.AllowSizing")));
			this.dgrdData.PreviewInfo.Caption = resources.GetString("dgrdData.PreviewInfo.Caption");
			this.dgrdData.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.PreviewInfo.Location")));
			this.dgrdData.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.PreviewInfo.Size")));
			this.dgrdData.PreviewInfo.ToolBars = ((bool)(resources.GetObject("dgrdData.PreviewInfo.ToolBars")));
			this.dgrdData.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("dgrdData.PreviewInfo.UIStrings.Content")));
			this.dgrdData.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("dgrdData.PreviewInfo.ZoomFactor")));
			this.dgrdData.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.MaxRowHeight")));
			this.dgrdData.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageFooter")));
			this.dgrdData.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageHeader")));
			this.dgrdData.PrintInfo.PageFooter = resources.GetString("dgrdData.PrintInfo.PageFooter");
			this.dgrdData.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageFooterHeight")));
			this.dgrdData.PrintInfo.PageHeader = resources.GetString("dgrdData.PrintInfo.PageHeader");
			this.dgrdData.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageHeaderHeight")));
			this.dgrdData.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("dgrdData.PrintInfo.PrintHorizontalSplits")));
			this.dgrdData.PrintInfo.ProgressCaption = resources.GetString("dgrdData.PrintInfo.ProgressCaption");
			this.dgrdData.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnFooters")));
			this.dgrdData.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnHeaders")));
			this.dgrdData.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatGridHeader")));
			this.dgrdData.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatSplitHeaders")));
			this.dgrdData.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowOptionsDialog")));
			this.dgrdData.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowProgressForm")));
			this.dgrdData.PrintInfo.ShowSelection = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowSelection")));
			this.dgrdData.PrintInfo.UseGridColors = ((bool)(resources.GetObject("dgrdData.PrintInfo.UseGridColors")));
			this.dgrdData.RecordSelectors = ((bool)(resources.GetObject("dgrdData.RecordSelectors")));
			this.dgrdData.RecordSelectorWidth = ((int)(resources.GetObject("dgrdData.RecordSelectorWidth")));
			this.dgrdData.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dgrdData.RightToLeft")));
			this.dgrdData.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
			this.dgrdData.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
			this.dgrdData.RowHeight = ((int)(resources.GetObject("dgrdData.RowHeight")));
			this.dgrdData.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.RowSubDividerColor")));
			this.dgrdData.ScrollTips = ((bool)(resources.GetObject("dgrdData.ScrollTips")));
			this.dgrdData.ScrollTrack = ((bool)(resources.GetObject("dgrdData.ScrollTrack")));
			this.dgrdData.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.Size")));
			this.dgrdData.SpringMode = ((bool)(resources.GetObject("dgrdData.SpringMode")));
			this.dgrdData.TabAcrossSplits = ((bool)(resources.GetObject("dgrdData.TabAcrossSplits")));
			this.dgrdData.TabIndex = ((int)(resources.GetObject("dgrdData.TabIndex")));
			this.dgrdData.Text = resources.GetString("dgrdData.Text");
			this.dgrdData.ViewCaptionWidth = ((int)(resources.GetObject("dgrdData.ViewCaptionWidth")));
			this.dgrdData.ViewColumnWidth = ((int)(resources.GetObject("dgrdData.ViewColumnWidth")));
			this.dgrdData.Visible = ((bool)(resources.GetObject("dgrdData.Visible")));
			this.dgrdData.WrapCellPointer = ((bool)(resources.GetObject("dgrdData.WrapCellPointer")));
			this.dgrdData.Click += new System.EventHandler(this.dgrdData_Click);
			this.dgrdData.AfterColUpdate += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_AfterColUpdate);
			this.dgrdData.PropBag = resources.GetString("dgrdData.PropBag");
			// 
			// chkSelectAll
			// 
			this.chkSelectAll.AccessibleDescription = resources.GetString("chkSelectAll.AccessibleDescription");
			this.chkSelectAll.AccessibleName = resources.GetString("chkSelectAll.AccessibleName");
			this.chkSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("chkSelectAll.Anchor")));
			this.chkSelectAll.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("chkSelectAll.Appearance")));
			this.chkSelectAll.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("chkSelectAll.BackgroundImage")));
			this.chkSelectAll.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAll.CheckAlign")));
			this.chkSelectAll.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("chkSelectAll.Dock")));
			this.chkSelectAll.Enabled = ((bool)(resources.GetObject("chkSelectAll.Enabled")));
			this.chkSelectAll.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("chkSelectAll.FlatStyle")));
			this.chkSelectAll.Font = ((System.Drawing.Font)(resources.GetObject("chkSelectAll.Font")));
			this.chkSelectAll.Image = ((System.Drawing.Image)(resources.GetObject("chkSelectAll.Image")));
			this.chkSelectAll.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAll.ImageAlign")));
			this.chkSelectAll.ImageIndex = ((int)(resources.GetObject("chkSelectAll.ImageIndex")));
			this.chkSelectAll.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("chkSelectAll.ImeMode")));
			this.chkSelectAll.Location = ((System.Drawing.Point)(resources.GetObject("chkSelectAll.Location")));
			this.chkSelectAll.Name = "chkSelectAll";
			this.chkSelectAll.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("chkSelectAll.RightToLeft")));
			this.chkSelectAll.Size = ((System.Drawing.Size)(resources.GetObject("chkSelectAll.Size")));
			this.chkSelectAll.TabIndex = ((int)(resources.GetObject("chkSelectAll.TabIndex")));
			this.chkSelectAll.Text = resources.GetString("chkSelectAll.Text");
			this.chkSelectAll.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAll.TextAlign")));
			this.chkSelectAll.Visible = ((bool)(resources.GetObject("chkSelectAll.Visible")));
			this.chkSelectAll.Click += new System.EventHandler(this.chkSelectAll_Click);
			// 
			// lblAllLocation
			// 
			this.lblAllLocation.AccessibleDescription = resources.GetString("lblAllLocation.AccessibleDescription");
			this.lblAllLocation.AccessibleName = resources.GetString("lblAllLocation.AccessibleName");
			this.lblAllLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblAllLocation.Anchor")));
			this.lblAllLocation.AutoSize = ((bool)(resources.GetObject("lblAllLocation.AutoSize")));
			this.lblAllLocation.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblAllLocation.Dock")));
			this.lblAllLocation.Enabled = ((bool)(resources.GetObject("lblAllLocation.Enabled")));
			this.lblAllLocation.Font = ((System.Drawing.Font)(resources.GetObject("lblAllLocation.Font")));
			this.lblAllLocation.Image = ((System.Drawing.Image)(resources.GetObject("lblAllLocation.Image")));
			this.lblAllLocation.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblAllLocation.ImageAlign")));
			this.lblAllLocation.ImageIndex = ((int)(resources.GetObject("lblAllLocation.ImageIndex")));
			this.lblAllLocation.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblAllLocation.ImeMode")));
			this.lblAllLocation.Location = ((System.Drawing.Point)(resources.GetObject("lblAllLocation.Location")));
			this.lblAllLocation.Name = "lblAllLocation";
			this.lblAllLocation.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblAllLocation.RightToLeft")));
			this.lblAllLocation.Size = ((System.Drawing.Size)(resources.GetObject("lblAllLocation.Size")));
			this.lblAllLocation.TabIndex = ((int)(resources.GetObject("lblAllLocation.TabIndex")));
			this.lblAllLocation.Text = resources.GetString("lblAllLocation.Text");
			this.lblAllLocation.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblAllLocation.TextAlign")));
			this.lblAllLocation.Visible = ((bool)(resources.GetObject("lblAllLocation.Visible")));
			// 
			// txtBinType
			// 
			this.txtBinType.AccessibleDescription = resources.GetString("txtBinType.AccessibleDescription");
			this.txtBinType.AccessibleName = resources.GetString("txtBinType.AccessibleName");
			this.txtBinType.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtBinType.Anchor")));
			this.txtBinType.AutoSize = ((bool)(resources.GetObject("txtBinType.AutoSize")));
			this.txtBinType.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtBinType.BackgroundImage")));
			this.txtBinType.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtBinType.Dock")));
			this.txtBinType.Enabled = ((bool)(resources.GetObject("txtBinType.Enabled")));
			this.txtBinType.Font = ((System.Drawing.Font)(resources.GetObject("txtBinType.Font")));
			this.txtBinType.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtBinType.ImeMode")));
			this.txtBinType.Location = ((System.Drawing.Point)(resources.GetObject("txtBinType.Location")));
			this.txtBinType.MaxLength = ((int)(resources.GetObject("txtBinType.MaxLength")));
			this.txtBinType.Multiline = ((bool)(resources.GetObject("txtBinType.Multiline")));
			this.txtBinType.Name = "txtBinType";
			this.txtBinType.PasswordChar = ((char)(resources.GetObject("txtBinType.PasswordChar")));
			this.txtBinType.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtBinType.RightToLeft")));
			this.txtBinType.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtBinType.ScrollBars")));
			this.txtBinType.Size = ((System.Drawing.Size)(resources.GetObject("txtBinType.Size")));
			this.txtBinType.TabIndex = ((int)(resources.GetObject("txtBinType.TabIndex")));
			this.txtBinType.Text = resources.GetString("txtBinType.Text");
			this.txtBinType.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtBinType.TextAlign")));
			this.txtBinType.Visible = ((bool)(resources.GetObject("txtBinType.Visible")));
			this.txtBinType.WordWrap = ((bool)(resources.GetObject("txtBinType.WordWrap")));
			this.txtBinType.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtBinType_KeyDown);
			this.txtBinType.Validating += new System.ComponentModel.CancelEventHandler(this.txtBinType_Validating);
			// 
			// btnBinType
			// 
			this.btnBinType.AccessibleDescription = resources.GetString("btnBinType.AccessibleDescription");
			this.btnBinType.AccessibleName = resources.GetString("btnBinType.AccessibleName");
			this.btnBinType.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnBinType.Anchor")));
			this.btnBinType.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnBinType.BackgroundImage")));
			this.btnBinType.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnBinType.Dock")));
			this.btnBinType.Enabled = ((bool)(resources.GetObject("btnBinType.Enabled")));
			this.btnBinType.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnBinType.FlatStyle")));
			this.btnBinType.Font = ((System.Drawing.Font)(resources.GetObject("btnBinType.Font")));
			this.btnBinType.Image = ((System.Drawing.Image)(resources.GetObject("btnBinType.Image")));
			this.btnBinType.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnBinType.ImageAlign")));
			this.btnBinType.ImageIndex = ((int)(resources.GetObject("btnBinType.ImageIndex")));
			this.btnBinType.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnBinType.ImeMode")));
			this.btnBinType.Location = ((System.Drawing.Point)(resources.GetObject("btnBinType.Location")));
			this.btnBinType.Name = "btnBinType";
			this.btnBinType.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnBinType.RightToLeft")));
			this.btnBinType.Size = ((System.Drawing.Size)(resources.GetObject("btnBinType.Size")));
			this.btnBinType.TabIndex = ((int)(resources.GetObject("btnBinType.TabIndex")));
			this.btnBinType.Text = resources.GetString("btnBinType.Text");
			this.btnBinType.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnBinType.TextAlign")));
			this.btnBinType.Visible = ((bool)(resources.GetObject("btnBinType.Visible")));
			this.btnBinType.Click += new System.EventHandler(this.btnBinType_Click);
			// 
			// lblBinType
			// 
			this.lblBinType.AccessibleDescription = resources.GetString("lblBinType.AccessibleDescription");
			this.lblBinType.AccessibleName = resources.GetString("lblBinType.AccessibleName");
			this.lblBinType.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblBinType.Anchor")));
			this.lblBinType.AutoSize = ((bool)(resources.GetObject("lblBinType.AutoSize")));
			this.lblBinType.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblBinType.Dock")));
			this.lblBinType.Enabled = ((bool)(resources.GetObject("lblBinType.Enabled")));
			this.lblBinType.Font = ((System.Drawing.Font)(resources.GetObject("lblBinType.Font")));
			this.lblBinType.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblBinType.Image = ((System.Drawing.Image)(resources.GetObject("lblBinType.Image")));
			this.lblBinType.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblBinType.ImageAlign")));
			this.lblBinType.ImageIndex = ((int)(resources.GetObject("lblBinType.ImageIndex")));
			this.lblBinType.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblBinType.ImeMode")));
			this.lblBinType.Location = ((System.Drawing.Point)(resources.GetObject("lblBinType.Location")));
			this.lblBinType.Name = "lblBinType";
			this.lblBinType.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblBinType.RightToLeft")));
			this.lblBinType.Size = ((System.Drawing.Size)(resources.GetObject("lblBinType.Size")));
			this.lblBinType.TabIndex = ((int)(resources.GetObject("lblBinType.TabIndex")));
			this.lblBinType.Text = resources.GetString("lblBinType.Text");
			this.lblBinType.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblBinType.TextAlign")));
			this.lblBinType.Visible = ((bool)(resources.GetObject("lblBinType.Visible")));
			this.lblBinType.Click += new System.EventHandler(this.lblBinType_Click);
			// 
			// btnModel
			// 
			this.btnModel.AccessibleDescription = resources.GetString("btnModel.AccessibleDescription");
			this.btnModel.AccessibleName = resources.GetString("btnModel.AccessibleName");
			this.btnModel.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnModel.Anchor")));
			this.btnModel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnModel.BackgroundImage")));
			this.btnModel.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnModel.Dock")));
			this.btnModel.Enabled = ((bool)(resources.GetObject("btnModel.Enabled")));
			this.btnModel.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnModel.FlatStyle")));
			this.btnModel.Font = ((System.Drawing.Font)(resources.GetObject("btnModel.Font")));
			this.btnModel.Image = ((System.Drawing.Image)(resources.GetObject("btnModel.Image")));
			this.btnModel.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnModel.ImageAlign")));
			this.btnModel.ImageIndex = ((int)(resources.GetObject("btnModel.ImageIndex")));
			this.btnModel.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnModel.ImeMode")));
			this.btnModel.Location = ((System.Drawing.Point)(resources.GetObject("btnModel.Location")));
			this.btnModel.Name = "btnModel";
			this.btnModel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnModel.RightToLeft")));
			this.btnModel.Size = ((System.Drawing.Size)(resources.GetObject("btnModel.Size")));
			this.btnModel.TabIndex = ((int)(resources.GetObject("btnModel.TabIndex")));
			this.btnModel.Text = resources.GetString("btnModel.Text");
			this.btnModel.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnModel.TextAlign")));
			this.btnModel.Visible = ((bool)(resources.GetObject("btnModel.Visible")));
			this.btnModel.Click += new System.EventHandler(this.btnModel_Click);
			// 
			// txtModel
			// 
			this.txtModel.AccessibleDescription = resources.GetString("txtModel.AccessibleDescription");
			this.txtModel.AccessibleName = resources.GetString("txtModel.AccessibleName");
			this.txtModel.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtModel.Anchor")));
			this.txtModel.AutoSize = ((bool)(resources.GetObject("txtModel.AutoSize")));
			this.txtModel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtModel.BackgroundImage")));
			this.txtModel.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtModel.Dock")));
			this.txtModel.Enabled = ((bool)(resources.GetObject("txtModel.Enabled")));
			this.txtModel.Font = ((System.Drawing.Font)(resources.GetObject("txtModel.Font")));
			this.txtModel.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtModel.ImeMode")));
			this.txtModel.Location = ((System.Drawing.Point)(resources.GetObject("txtModel.Location")));
			this.txtModel.MaxLength = ((int)(resources.GetObject("txtModel.MaxLength")));
			this.txtModel.Multiline = ((bool)(resources.GetObject("txtModel.Multiline")));
			this.txtModel.Name = "txtModel";
			this.txtModel.PasswordChar = ((char)(resources.GetObject("txtModel.PasswordChar")));
			this.txtModel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtModel.RightToLeft")));
			this.txtModel.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtModel.ScrollBars")));
			this.txtModel.Size = ((System.Drawing.Size)(resources.GetObject("txtModel.Size")));
			this.txtModel.TabIndex = ((int)(resources.GetObject("txtModel.TabIndex")));
			this.txtModel.Text = resources.GetString("txtModel.Text");
			this.txtModel.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtModel.TextAlign")));
			this.txtModel.Visible = ((bool)(resources.GetObject("txtModel.Visible")));
			this.txtModel.WordWrap = ((bool)(resources.GetObject("txtModel.WordWrap")));
			this.txtModel.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtModel_KeyDown);
			this.txtModel.Validating += new System.ComponentModel.CancelEventHandler(this.txtModel_Validating);
			// 
			// lblModel
			// 
			this.lblModel.AccessibleDescription = resources.GetString("lblModel.AccessibleDescription");
			this.lblModel.AccessibleName = resources.GetString("lblModel.AccessibleName");
			this.lblModel.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblModel.Anchor")));
			this.lblModel.AutoSize = ((bool)(resources.GetObject("lblModel.AutoSize")));
			this.lblModel.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblModel.Dock")));
			this.lblModel.Enabled = ((bool)(resources.GetObject("lblModel.Enabled")));
			this.lblModel.Font = ((System.Drawing.Font)(resources.GetObject("lblModel.Font")));
			this.lblModel.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblModel.Image = ((System.Drawing.Image)(resources.GetObject("lblModel.Image")));
			this.lblModel.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblModel.ImageAlign")));
			this.lblModel.ImageIndex = ((int)(resources.GetObject("lblModel.ImageIndex")));
			this.lblModel.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblModel.ImeMode")));
			this.lblModel.Location = ((System.Drawing.Point)(resources.GetObject("lblModel.Location")));
			this.lblModel.Name = "lblModel";
			this.lblModel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblModel.RightToLeft")));
			this.lblModel.Size = ((System.Drawing.Size)(resources.GetObject("lblModel.Size")));
			this.lblModel.TabIndex = ((int)(resources.GetObject("lblModel.TabIndex")));
			this.lblModel.Text = resources.GetString("lblModel.Text");
			this.lblModel.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblModel.TextAlign")));
			this.lblModel.Visible = ((bool)(resources.GetObject("lblModel.Visible")));
			// 
			// txtPartName
			// 
			this.txtPartName.AccessibleDescription = resources.GetString("txtPartName.AccessibleDescription");
			this.txtPartName.AccessibleName = resources.GetString("txtPartName.AccessibleName");
			this.txtPartName.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtPartName.Anchor")));
			this.txtPartName.AutoSize = ((bool)(resources.GetObject("txtPartName.AutoSize")));
			this.txtPartName.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtPartName.BackgroundImage")));
			this.txtPartName.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtPartName.Dock")));
			this.txtPartName.Enabled = ((bool)(resources.GetObject("txtPartName.Enabled")));
			this.txtPartName.Font = ((System.Drawing.Font)(resources.GetObject("txtPartName.Font")));
			this.txtPartName.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtPartName.ImeMode")));
			this.txtPartName.Location = ((System.Drawing.Point)(resources.GetObject("txtPartName.Location")));
			this.txtPartName.MaxLength = ((int)(resources.GetObject("txtPartName.MaxLength")));
			this.txtPartName.Multiline = ((bool)(resources.GetObject("txtPartName.Multiline")));
			this.txtPartName.Name = "txtPartName";
			this.txtPartName.PasswordChar = ((char)(resources.GetObject("txtPartName.PasswordChar")));
			this.txtPartName.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtPartName.RightToLeft")));
			this.txtPartName.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtPartName.ScrollBars")));
			this.txtPartName.Size = ((System.Drawing.Size)(resources.GetObject("txtPartName.Size")));
			this.txtPartName.TabIndex = ((int)(resources.GetObject("txtPartName.TabIndex")));
			this.txtPartName.Text = resources.GetString("txtPartName.Text");
			this.txtPartName.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtPartName.TextAlign")));
			this.txtPartName.Visible = ((bool)(resources.GetObject("txtPartName.Visible")));
			this.txtPartName.WordWrap = ((bool)(resources.GetObject("txtPartName.WordWrap")));
			this.txtPartName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPartName_KeyDown);
			this.txtPartName.Validating += new System.ComponentModel.CancelEventHandler(this.txtPartName_Validating);
			// 
			// txtPartNumber
			// 
			this.txtPartNumber.AccessibleDescription = resources.GetString("txtPartNumber.AccessibleDescription");
			this.txtPartNumber.AccessibleName = resources.GetString("txtPartNumber.AccessibleName");
			this.txtPartNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtPartNumber.Anchor")));
			this.txtPartNumber.AutoSize = ((bool)(resources.GetObject("txtPartNumber.AutoSize")));
			this.txtPartNumber.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtPartNumber.BackgroundImage")));
			this.txtPartNumber.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtPartNumber.Dock")));
			this.txtPartNumber.Enabled = ((bool)(resources.GetObject("txtPartNumber.Enabled")));
			this.txtPartNumber.Font = ((System.Drawing.Font)(resources.GetObject("txtPartNumber.Font")));
			this.txtPartNumber.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtPartNumber.ImeMode")));
			this.txtPartNumber.Location = ((System.Drawing.Point)(resources.GetObject("txtPartNumber.Location")));
			this.txtPartNumber.MaxLength = ((int)(resources.GetObject("txtPartNumber.MaxLength")));
			this.txtPartNumber.Multiline = ((bool)(resources.GetObject("txtPartNumber.Multiline")));
			this.txtPartNumber.Name = "txtPartNumber";
			this.txtPartNumber.PasswordChar = ((char)(resources.GetObject("txtPartNumber.PasswordChar")));
			this.txtPartNumber.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtPartNumber.RightToLeft")));
			this.txtPartNumber.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtPartNumber.ScrollBars")));
			this.txtPartNumber.Size = ((System.Drawing.Size)(resources.GetObject("txtPartNumber.Size")));
			this.txtPartNumber.TabIndex = ((int)(resources.GetObject("txtPartNumber.TabIndex")));
			this.txtPartNumber.Text = resources.GetString("txtPartNumber.Text");
			this.txtPartNumber.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtPartNumber.TextAlign")));
			this.txtPartNumber.Visible = ((bool)(resources.GetObject("txtPartNumber.Visible")));
			this.txtPartNumber.WordWrap = ((bool)(resources.GetObject("txtPartNumber.WordWrap")));
			this.txtPartNumber.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPartNumber_KeyDown);
			this.txtPartNumber.Validating += new System.ComponentModel.CancelEventHandler(this.txtPartNumber_Validating);
			// 
			// txtRevision
			// 
			this.txtRevision.AccessibleDescription = resources.GetString("txtRevision.AccessibleDescription");
			this.txtRevision.AccessibleName = resources.GetString("txtRevision.AccessibleName");
			this.txtRevision.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtRevision.Anchor")));
			this.txtRevision.AutoSize = ((bool)(resources.GetObject("txtRevision.AutoSize")));
			this.txtRevision.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtRevision.BackgroundImage")));
			this.txtRevision.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtRevision.Dock")));
			this.txtRevision.Enabled = ((bool)(resources.GetObject("txtRevision.Enabled")));
			this.txtRevision.Font = ((System.Drawing.Font)(resources.GetObject("txtRevision.Font")));
			this.txtRevision.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtRevision.ImeMode")));
			this.txtRevision.Location = ((System.Drawing.Point)(resources.GetObject("txtRevision.Location")));
			this.txtRevision.MaxLength = ((int)(resources.GetObject("txtRevision.MaxLength")));
			this.txtRevision.Multiline = ((bool)(resources.GetObject("txtRevision.Multiline")));
			this.txtRevision.Name = "txtRevision";
			this.txtRevision.PasswordChar = ((char)(resources.GetObject("txtRevision.PasswordChar")));
			this.txtRevision.ReadOnly = true;
			this.txtRevision.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtRevision.RightToLeft")));
			this.txtRevision.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtRevision.ScrollBars")));
			this.txtRevision.Size = ((System.Drawing.Size)(resources.GetObject("txtRevision.Size")));
			this.txtRevision.TabIndex = ((int)(resources.GetObject("txtRevision.TabIndex")));
			this.txtRevision.Text = resources.GetString("txtRevision.Text");
			this.txtRevision.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtRevision.TextAlign")));
			this.txtRevision.Visible = ((bool)(resources.GetObject("txtRevision.Visible")));
			this.txtRevision.WordWrap = ((bool)(resources.GetObject("txtRevision.WordWrap")));
			// 
			// btnPartNumberSearch
			// 
			this.btnPartNumberSearch.AccessibleDescription = resources.GetString("btnPartNumberSearch.AccessibleDescription");
			this.btnPartNumberSearch.AccessibleName = resources.GetString("btnPartNumberSearch.AccessibleName");
			this.btnPartNumberSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnPartNumberSearch.Anchor")));
			this.btnPartNumberSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnPartNumberSearch.BackgroundImage")));
			this.btnPartNumberSearch.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnPartNumberSearch.Dock")));
			this.btnPartNumberSearch.Enabled = ((bool)(resources.GetObject("btnPartNumberSearch.Enabled")));
			this.btnPartNumberSearch.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnPartNumberSearch.FlatStyle")));
			this.btnPartNumberSearch.Font = ((System.Drawing.Font)(resources.GetObject("btnPartNumberSearch.Font")));
			this.btnPartNumberSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnPartNumberSearch.Image")));
			this.btnPartNumberSearch.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPartNumberSearch.ImageAlign")));
			this.btnPartNumberSearch.ImageIndex = ((int)(resources.GetObject("btnPartNumberSearch.ImageIndex")));
			this.btnPartNumberSearch.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnPartNumberSearch.ImeMode")));
			this.btnPartNumberSearch.Location = ((System.Drawing.Point)(resources.GetObject("btnPartNumberSearch.Location")));
			this.btnPartNumberSearch.Name = "btnPartNumberSearch";
			this.btnPartNumberSearch.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnPartNumberSearch.RightToLeft")));
			this.btnPartNumberSearch.Size = ((System.Drawing.Size)(resources.GetObject("btnPartNumberSearch.Size")));
			this.btnPartNumberSearch.TabIndex = ((int)(resources.GetObject("btnPartNumberSearch.TabIndex")));
			this.btnPartNumberSearch.Text = resources.GetString("btnPartNumberSearch.Text");
			this.btnPartNumberSearch.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPartNumberSearch.TextAlign")));
			this.btnPartNumberSearch.Visible = ((bool)(resources.GetObject("btnPartNumberSearch.Visible")));
			this.btnPartNumberSearch.Click += new System.EventHandler(this.btnPartNumberSearch_Click);
			// 
			// btnPartNameSearch
			// 
			this.btnPartNameSearch.AccessibleDescription = resources.GetString("btnPartNameSearch.AccessibleDescription");
			this.btnPartNameSearch.AccessibleName = resources.GetString("btnPartNameSearch.AccessibleName");
			this.btnPartNameSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnPartNameSearch.Anchor")));
			this.btnPartNameSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnPartNameSearch.BackgroundImage")));
			this.btnPartNameSearch.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnPartNameSearch.Dock")));
			this.btnPartNameSearch.Enabled = ((bool)(resources.GetObject("btnPartNameSearch.Enabled")));
			this.btnPartNameSearch.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnPartNameSearch.FlatStyle")));
			this.btnPartNameSearch.Font = ((System.Drawing.Font)(resources.GetObject("btnPartNameSearch.Font")));
			this.btnPartNameSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnPartNameSearch.Image")));
			this.btnPartNameSearch.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPartNameSearch.ImageAlign")));
			this.btnPartNameSearch.ImageIndex = ((int)(resources.GetObject("btnPartNameSearch.ImageIndex")));
			this.btnPartNameSearch.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnPartNameSearch.ImeMode")));
			this.btnPartNameSearch.Location = ((System.Drawing.Point)(resources.GetObject("btnPartNameSearch.Location")));
			this.btnPartNameSearch.Name = "btnPartNameSearch";
			this.btnPartNameSearch.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnPartNameSearch.RightToLeft")));
			this.btnPartNameSearch.Size = ((System.Drawing.Size)(resources.GetObject("btnPartNameSearch.Size")));
			this.btnPartNameSearch.TabIndex = ((int)(resources.GetObject("btnPartNameSearch.TabIndex")));
			this.btnPartNameSearch.Text = resources.GetString("btnPartNameSearch.Text");
			this.btnPartNameSearch.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPartNameSearch.TextAlign")));
			this.btnPartNameSearch.Visible = ((bool)(resources.GetObject("btnPartNameSearch.Visible")));
			this.btnPartNameSearch.Click += new System.EventHandler(this.btnPartNameSearch_Click);
			// 
			// lblPartNumer
			// 
			this.lblPartNumer.AccessibleDescription = resources.GetString("lblPartNumer.AccessibleDescription");
			this.lblPartNumer.AccessibleName = resources.GetString("lblPartNumer.AccessibleName");
			this.lblPartNumer.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblPartNumer.Anchor")));
			this.lblPartNumer.AutoSize = ((bool)(resources.GetObject("lblPartNumer.AutoSize")));
			this.lblPartNumer.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblPartNumer.Dock")));
			this.lblPartNumer.Enabled = ((bool)(resources.GetObject("lblPartNumer.Enabled")));
			this.lblPartNumer.Font = ((System.Drawing.Font)(resources.GetObject("lblPartNumer.Font")));
			this.lblPartNumer.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblPartNumer.Image = ((System.Drawing.Image)(resources.GetObject("lblPartNumer.Image")));
			this.lblPartNumer.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPartNumer.ImageAlign")));
			this.lblPartNumer.ImageIndex = ((int)(resources.GetObject("lblPartNumer.ImageIndex")));
			this.lblPartNumer.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblPartNumer.ImeMode")));
			this.lblPartNumer.Location = ((System.Drawing.Point)(resources.GetObject("lblPartNumer.Location")));
			this.lblPartNumer.Name = "lblPartNumer";
			this.lblPartNumer.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblPartNumer.RightToLeft")));
			this.lblPartNumer.Size = ((System.Drawing.Size)(resources.GetObject("lblPartNumer.Size")));
			this.lblPartNumer.TabIndex = ((int)(resources.GetObject("lblPartNumer.TabIndex")));
			this.lblPartNumer.Text = resources.GetString("lblPartNumer.Text");
			this.lblPartNumer.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPartNumer.TextAlign")));
			this.lblPartNumer.Visible = ((bool)(resources.GetObject("lblPartNumer.Visible")));
			// 
			// lblPartName
			// 
			this.lblPartName.AccessibleDescription = resources.GetString("lblPartName.AccessibleDescription");
			this.lblPartName.AccessibleName = resources.GetString("lblPartName.AccessibleName");
			this.lblPartName.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblPartName.Anchor")));
			this.lblPartName.AutoSize = ((bool)(resources.GetObject("lblPartName.AutoSize")));
			this.lblPartName.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblPartName.Dock")));
			this.lblPartName.Enabled = ((bool)(resources.GetObject("lblPartName.Enabled")));
			this.lblPartName.Font = ((System.Drawing.Font)(resources.GetObject("lblPartName.Font")));
			this.lblPartName.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblPartName.Image = ((System.Drawing.Image)(resources.GetObject("lblPartName.Image")));
			this.lblPartName.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPartName.ImageAlign")));
			this.lblPartName.ImageIndex = ((int)(resources.GetObject("lblPartName.ImageIndex")));
			this.lblPartName.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblPartName.ImeMode")));
			this.lblPartName.Location = ((System.Drawing.Point)(resources.GetObject("lblPartName.Location")));
			this.lblPartName.Name = "lblPartName";
			this.lblPartName.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblPartName.RightToLeft")));
			this.lblPartName.Size = ((System.Drawing.Size)(resources.GetObject("lblPartName.Size")));
			this.lblPartName.TabIndex = ((int)(resources.GetObject("lblPartName.TabIndex")));
			this.lblPartName.Text = resources.GetString("lblPartName.Text");
			this.lblPartName.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPartName.TextAlign")));
			this.lblPartName.Visible = ((bool)(resources.GetObject("lblPartName.Visible")));
			// 
			// InOutStockReport
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.CancelButton = this.btnClose;
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.txtPartName);
			this.Controls.Add(this.txtPartNumber);
			this.Controls.Add(this.txtRevision);
			this.Controls.Add(this.btnPartNumberSearch);
			this.Controls.Add(this.btnPartNameSearch);
			this.Controls.Add(this.lblPartNumer);
			this.Controls.Add(this.lblPartName);
			this.Controls.Add(this.btnModel);
			this.Controls.Add(this.txtModel);
			this.Controls.Add(this.lblModel);
			this.Controls.Add(this.txtBinType);
			this.Controls.Add(this.btnBinType);
			this.Controls.Add(this.lblBinType);
			this.Controls.Add(this.lblAllLocation);
			this.Controls.Add(this.dgrdData);
			this.Controls.Add(this.btnSource);
			this.Controls.Add(this.txtSource);
			this.Controls.Add(this.txtBin);
			this.Controls.Add(this.txtCategory);
			this.Controls.Add(this.txtLocation);
			this.Controls.Add(this.txtMasLoc);
			this.Controls.Add(this.lblSource);
			this.Controls.Add(this.btnBin);
			this.Controls.Add(this.lblBin);
			this.Controls.Add(this.dtmToDate);
			this.Controls.Add(this.lblToDate);
			this.Controls.Add(this.dtmFromDate);
			this.Controls.Add(this.lblFromDate);
			this.Controls.Add(this.btnPrint);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.btnCategory);
			this.Controls.Add(this.btnMasLoc);
			this.Controls.Add(this.lblCCN);
			this.Controls.Add(this.cboCCN);
			this.Controls.Add(this.lblCategory);
			this.Controls.Add(this.lblLocation);
			this.Controls.Add(this.lblMasLoc);
			this.Controls.Add(this.chkSelectAll);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximizeBox = false;
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "InOutStockReport";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.Load += new System.EventHandler(this.InventoryStatus_Load);
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmToDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion
		
		#region Methods
		
		private void ChangeSelectedLocation()
		{
			string strSelectedNames = string.Empty;
			string strSelectedIDs = string.Empty;
			bool blnCheckAll = true;
			//bool blnBinControl = false;

			//Loop grid to get selected location
			for(int i = 0; i < dgrdData.RowCount; i++)
			{
				if(dgrdData[i, SELECT_FLD].Equals(DBNull.Value))
				{
					continue;
				}
				
				//if(dgrdData[i, MST_LocationTable.BIN_FLD] != DBNull.Value)
				//{
				//	blnBinControl = bool.Parse(dgrdData[i, MST_LocationTable.BIN_FLD].ToString());
				//}
				
				blnCheckAll &= bool.Parse(dgrdData[i, SELECT_FLD].ToString());

				if(dgrdData[i, SELECT_FLD].ToString().ToUpper().Equals(true.ToString().ToUpper()))
				{
					strSelectedNames += dgrdData[i, MST_LocationTable.CODE_FLD].ToString() + Constants.COMMA + Constants.WHITE_SPACE;
					strSelectedIDs   += dgrdData[i, MST_LocationTable.LOCATIONID_FLD].ToString() + Constants.COMMA + Constants.WHITE_SPACE;
				}
			}
				
			if(strSelectedNames.Length != 0)
			{
				txtLocation.Text = strSelectedNames.Trim().Substring(0, strSelectedNames.Trim().Length - 1);
				txtLocation.Tag = strSelectedIDs.Trim().Substring(0, strSelectedIDs.Trim().Length - 1);
			}
			else
			{
				txtLocation.Text = string.Empty;
				txtLocation.Tag = string.Empty;				
			}
			
			chkSelectAll.Checked = blnCheckAll;

			//btnBin.Enabled = blnBinControl && (txtLocation.Tag.ToString().IndexOf(Constants.COMMA) > 0);
			//txtBin.Enabled = btnBin.Enabled;			
		}

		/// <summary>
		/// Build and show In Out Stock Report
		/// </summary>
		/// <Author> Tuan TQ, 16 Jan, 2006</Author>
		private void ShowInOuStockReport()
		{
			const int MAX_LOCATION_LENGHT = 120;
			const string SQL_DATETIME_FORMAT = "yyyy-MM-dd HH:mm";
			const string APPLICATION_PATH  = @"PCSMain\bin\Debug";

			const string RPT_PAGE_HEADER = "PageHeader";

			const string RPT_COMPANY_FIELD = "fldCompany";
			const string RPT_TITLE_FIELD = "fldTitle";
						
			const string IN_OUT_STOCK_REPORT = "InOutStockReport.xml";			
			
			C1PrintPreviewDialog   printPreview = new C1PrintPreviewDialog();
			C1PrintPreviewDialogBO boDataReport = new C1PrintPreviewDialogBO();			
			// build the category and model list for mutli option
			
			DataTable dtbResult = boDataReport.GetInOutStockData(cboCCN.SelectedValue.ToString(),
										   txtMasLoc.Tag.ToString(), txtLocation.Tag.ToString(),
										   txtBinType.Tag.ToString(), txtBin.Tag.ToString(),
										   ((DateTime)dtmFromDate.Value), 
										   ((DateTime)dtmToDate.Value), 
										   txtCategory.Tag.ToString(), txtSource.Tag.ToString(),
										   txtModel.Tag.ToString(), txtPartNumber.Tag.ToString());
			
			ReportBuilder reportBuilder = new ReportBuilder();
			
			//Get actual application path
			string strReportPath = Application.StartupPath;
			int intIndex = strReportPath.IndexOf(APPLICATION_PATH);
			if( intIndex > -1 ) 
				strReportPath = strReportPath.Substring(0, intIndex);

			if(strReportPath.Substring(strReportPath.Length -1) == @"\")
				strReportPath += Constants.REPORT_DEFINITION_STORE_LOCATION;
			else
				strReportPath += "\\" + Constants.REPORT_DEFINITION_STORE_LOCATION;
			
			//Set datasource and lay-out path for reports
			reportBuilder.SourceDataTable = dtbResult;
			reportBuilder.ReportDefinitionFolder = strReportPath;
			
			reportBuilder.ReportLayoutFile = IN_OUT_STOCK_REPORT;

			//check if layout is valid
			if(reportBuilder.AnalyseLayoutFile())
				reportBuilder.UseLayoutFile = true;
			else
			{
				PCSMessageBox.Show(ErrorCode.MESSAGE_REPORT_TEMPLATE_FILE_NOT_FOUND, MessageBoxIcon.Error);
				return;
			}

			reportBuilder.MakeDataTableForRender();
						
			// and show it in preview dialog
			printPreview.FormTitle = this.Text;				
			reportBuilder.ReportViewer = printPreview.ReportViewer;
			reportBuilder.RenderReport();
				
			//Header information get from system params				
			reportBuilder.DrawPredefinedField(RPT_COMPANY_FIELD, SystemProperty.SytemParams.Get(SystemParam.COMPANY_FULL_NAME));		
			
			//Draw parameters				
			System.Collections.Specialized.NameValueCollection arrParamAndValue = new System.Collections.Specialized.NameValueCollection();			

			arrParamAndValue.Add(lblMasLoc.Text, txtMasLoc.Text);
			if(chkSelectAll.Checked)
				arrParamAndValue.Add(lblLocation.Text, lblAllLocation.Text);
			else if(txtLocation.Text.Length <= MAX_LOCATION_LENGHT)
				arrParamAndValue.Add(lblLocation.Text, txtLocation.Text);
			else
				arrParamAndValue.Add(lblLocation.Text, txtLocation.Text.Substring(0, MAX_LOCATION_LENGHT) + "...");

			arrParamAndValue.Add(lblFromDate.Text, ((DateTime)dtmFromDate.Value).ToString(Constants.DATETIME_FORMAT_HOUR));
			arrParamAndValue.Add(lblToDate.Text, ((DateTime)dtmToDate.Value).ToString(Constants.DATETIME_FORMAT_HOUR));
			
			if(txtBinType.Text.Trim() != string.Empty)
				arrParamAndValue.Add(lblBinType.Text, txtBinType.Text);

			if(txtBin.Text.Trim() != string.Empty)
				arrParamAndValue.Add(lblBin.Text, txtBin.Text);

			if(txtCategory.Text.Trim() != string.Empty)
				arrParamAndValue.Add(lblCategory.Text, txtCategory.Text);

			if(txtModel.Text.Trim() != string.Empty)
				arrParamAndValue.Add(lblModel.Text, txtModel.Text);

			if(txtSource.Text.Trim() != string.Empty)
				arrParamAndValue.Add(lblSource.Text, txtSource.Text);

			if(txtPartNumber.Text.Trim() != string.Empty)
			{
				arrParamAndValue.Add(lblPartNumer.Text, txtPartNumber.Text);
				arrParamAndValue.Add(lblPartName.Text, txtPartName.Text);
			}
						
			//Anchor the Parameter drawing canvas cordinate to the fldTitle
			C1.C1Report.Field fldTitle = reportBuilder.GetFieldByName(RPT_TITLE_FIELD);
			double dblStartX = fldTitle.Left;
			double dblStartY = fldTitle.Top  + 1.3*fldTitle.RenderHeight;
			reportBuilder.GetSectionByName(RPT_PAGE_HEADER).CanGrow = true;
			reportBuilder.DrawParameters(reportBuilder.GetSectionByName(RPT_PAGE_HEADER), dblStartX, dblStartY, arrParamAndValue, reportBuilder.Report.Font.Size);		
			
			//Refresh report
			reportBuilder.RefreshReport();
			
			//Print report
			printPreview.Show();
		}
		/// <summary>
		/// Validate data before updating into database
		/// </summary>
		/// <returns></returns>
		/// <author> Tran Quoc Tuan </author>
		/// <created date> 
		/// 20 July 2005
		/// </created>
		private bool ValidateData()
		{
			if (FormControlComponents.CheckMandatory(dtmFromDate))
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Exclamation);
				dtmFromDate.Focus();				
				return false;
			}

			if (FormControlComponents.CheckMandatory(dtmToDate))
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Exclamation);
				dtmToDate.Focus();				
				return false;
			}			
			
			if (FormControlComponents.CheckMandatory(txtMasLoc))
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Exclamation);
				txtMasLoc.Focus();				
				return false;
			}

			if (txtLocation.Text == string.Empty)
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Exclamation);
				dgrdData.Focus();				
				return false;
			}

			return true;			
		}
		

		private DataTable BuildLocationTableTemplate()
		{

			DataTable dtbTable = new DataTable(MST_LocationTable.TABLE_NAME);
			dtbTable.Columns.Add(SELECT_FLD, typeof(System.Boolean));
			dtbTable.Columns.Add(MST_LocationTable.CODE_FLD, typeof(System.String));
			dtbTable.Columns.Add(MST_LocationTable.NAME_FLD, typeof(System.String));
			dtbTable.Columns.Add(MST_LocationTable.BIN_FLD, typeof(System.Boolean));
			dtbTable.Columns.Add(MST_LocationTable.LOCATIONID_FLD, typeof(System.Int32));

			return dtbTable;
		}

		private void FormatDataGrid()
		{
			
			//Restore layout
			FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
			
			//Set properties
			dgrdData.AllowAddNew = false;
			dgrdData.AllowDelete = false;
			dgrdData.AllowUpdate = true;

			//Loc columns
			for(int i =0; i < dgrdData.Splits[0].DisplayColumns.Count; i++)
			{
				dgrdData.Splits[0].DisplayColumns[i].Locked = true;
			}
			
			//Enable Select column for selecting
			dgrdData.Splits[0].DisplayColumns[SELECT_FLD].Locked = false;				

			//Change display format			
			dgrdData.Columns[SELECT_FLD].ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;
			dgrdData.Columns[MST_LocationTable.BIN_FLD].ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;
		}
		
		//
		private void LoadLocationGrid(int pintMasterLocationID)
		{
			DataTable dtbLocation;

			if(pintMasterLocationID > 0)
			{
				LocationBO boLocation = new LocationBO();

				//HACK: Added by Tuan TQ 03 Apr, 2006. Fix error no. 3688
				string strConditionByRecord = (new UtilsBO()).GetConditionByRecord(SystemProperty.UserName, MST_LocationTable.TABLE_NAME);
				
				dtbLocation = boLocation.GetByLocation4Selecting(pintMasterLocationID, strConditionByRecord);
				//End hack
			}
			else
			{
				dtbLocation = BuildLocationTableTemplate();
			}

			//Bind data to grid
			dgrdData.DataSource = dtbLocation;
			//Format grid
			FormatDataGrid();
			chkSelectAll.Checked = false;
			chkSelectAll.Enabled = (dgrdData.RowCount > 0);
		}

		/// <summary>
		/// Clear information related to MasLoc, Location or Bin
		/// </summary>
		/// <param name="penuLocationType"></param>
		private void ClearRelatedInfo(EnumLocationType penuLocationType)
		{			
			switch(penuLocationType)
			{
				case EnumLocationType.MaterLocation:

					txtMasLoc.Tag = string.Empty;
					txtLocation.Text = string.Empty;
					txtLocation.Tag = string.Empty;
					txtBin.Text = string.Empty;
					txtBin.Tag = string.Empty;					
					break;

				case EnumLocationType.Location:
					txtLocation.Tag = string.Empty;
					txtBin.Text = string.Empty;
					txtBin.Tag = string.Empty;					
					break;

				case EnumLocationType.Bin:
					txtBin.Text = string.Empty;
					txtBin.Tag = string.Empty;
					
					break;
			}			
		}	

		/// <summary>
		/// Fill related data on controls when select Master Location
		/// </summary>
		/// <param name="blnOpenOnly"></param>
		private bool SelectMasterLocation(bool blnAlwaysShowDialog)
		{
			Hashtable htbCriteria = new Hashtable();

			if(cboCCN.SelectedValue != null)
			{
				htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, cboCCN.SelectedValue);
			}
			else
			{
				htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, 0);
			}				

			//Call OpenSearchForm for selecting Master Location
			DataRowView drwResult = FormControlComponents.OpenSearchForm(MST_MasterLocationTable.TABLE_NAME, MST_MasterLocationTable.CODE_FLD, txtMasLoc.Text, htbCriteria, blnAlwaysShowDialog);
			
			// If has Master location matched searching condition, fill values to form's controls
			if(drwResult != null)
			{
				//Check if master location was changed then clear grid content
				if(!txtMasLoc.Tag.Equals(drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD]))
				{
					LoadLocationGrid(int.Parse(drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD].ToString()));
				}

				txtMasLoc.Text = drwResult[MST_MasterLocationTable.CODE_FLD].ToString();
				txtMasLoc.Tag = drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD];
				
				//Reset modify status
				txtMasLoc.Modified = false;
			}
			else if(!blnAlwaysShowDialog)
			{
				txtMasLoc.Focus();
				return false;
			}
			
			//Return result
			return true;			
		}		
		
		/// <summary>
		/// Fill related data on controls when select BIN
		/// </summary>
		/// <param name="blnOpenOnly"></param>
		private bool SelectModel(bool blnAlwaysShowDialog)
		{
			const string PRODUCT_REVISION_VIEW = "v_ProductRevision";
			const string REVISION_FLD = "Revision";

			//Call OpenSearchForm for selecting Master Location
			DataTable dtbData = FormControlComponents.OpenSearchFormForMultiSelectedRow(PRODUCT_REVISION_VIEW, REVISION_FLD, txtModel.Text, string.Empty, blnAlwaysShowDialog);
			
			// If has Master location matched searching condition, fill values to form's controls
			if (dtbData != null && dtbData.Rows.Count > 0)
			{				
				StringBuilder sbCode = new StringBuilder();
				StringBuilder sbCodeTag = new StringBuilder();
				foreach (DataRow drowData in dtbData.Rows)
				{
					sbCode.Append(drowData[REVISION_FLD].ToString()).Append(",");
					sbCodeTag.Append("'" + drowData[REVISION_FLD].ToString() + "'").Append(",");
				}
				txtModel.Text = sbCode.ToString(0, sbCode.Length - 1);
				txtModel.Tag = sbCodeTag.ToString(0, sbCodeTag.Length - 1);
				
				//Reset modify status
				txtModel.Modified = false;
			}
			else if(!blnAlwaysShowDialog)
			{
				txtModel.Focus();
				return false;
			}
			
			return true;			
		}


		/// <summary>
		/// Fill related data on controls when select BIN Type
		/// </summary>
		private bool SelectBinType(bool blnAlwaysShowDialog)
		{
			DataTable dtbData = FormControlComponents.OpenSearchFormForMultiSelectedRow(enm_BINTypeTable.TABLE_NAME, enm_BINTypeTable.NAME_FLD, txtBinType.Text, string.Empty, blnAlwaysShowDialog);
			
			if (dtbData != null && dtbData.Rows.Count > 0)
			{				
				StringBuilder sbCode = new StringBuilder();
				StringBuilder sbCodeTag = new StringBuilder();
				foreach (DataRow drowData in dtbData.Rows)
				{
					sbCode.Append(drowData[enm_BINTypeTable.NAME_FLD].ToString()).Append(",");
					sbCodeTag.Append("'" + drowData[enm_BINTypeTable.BINTYPEID_FLD].ToString() + "'").Append(",");
				}
				txtBinType.Text = sbCode.ToString(0, sbCode.Length - 1);
				txtBinType.Tag = sbCodeTag.ToString(0, sbCodeTag.Length - 1);
				
				//Reset modify status
				txtBinType.Modified = false;
			}
			else if(!blnAlwaysShowDialog)
			{
				txtBinType.Focus();
				return false;
			}
			
			return true;
		}


		/// <summary>
		/// Fill related data on controls when select BIN
		/// </summary>
		/// <param name="blnOpenOnly"></param>
		private bool SelectBIN(bool blnAlwaysShowDialog)
		{
			string strFilter = "1=1";
				
			if(txtLocation.Tag != null && txtLocation.Tag.ToString() != string.Empty)
				strFilter += " AND " + MST_BINTable.TABLE_NAME + "." + MST_BINTable.LOCATIONID_FLD + " IN (" + txtLocation.Tag.ToString() + ")";
			if (txtBinType.Tag != null && txtBinType.Tag.ToString() != string.Empty)
				strFilter += " AND " + MST_BINTable.TABLE_NAME + "." + MST_BINTable.BINTYPEID_FLD + " IN (" + txtBinType.Tag.ToString() + ")";
			
			DataRowView drvResult = FormControlComponents.OpenSearchFormWithWhere(MST_BINTable.TABLE_NAME, MST_BINTable.CODE_FLD, txtBin.Text, strFilter, blnAlwaysShowDialog);

			// If has Master location matched searching condition, fill values to form's controls
			if (drvResult != null)
			{
				//Check if master location was changed then clear grid content
				if(!txtBin.Tag.Equals(drvResult[MST_BINTable.BINID_FLD]))
				{
					ClearRelatedInfo(EnumLocationType.Bin);
				}
				txtBin.Text = drvResult[MST_BINTable.CODE_FLD].ToString();
				txtBin.Tag = drvResult[MST_BINTable.BINID_FLD];
				
				//Reset modify status
				txtBin.Modified = false;
			}
			else if(!blnAlwaysShowDialog)
			{
				txtBin.Focus();
				return false;
			}				
			
			return true;			
		}


		/// <summary>
		/// Fill related data on controls when select Category
		/// </summary>
		/// <param name="blnOpenOnly"></param>
		private bool SelectCategory(bool blnAlwaysShowDialog)
		{
			//Call OpenSearchForm for selecting Category
			//DataRowView drwResult = FormControlComponents.OpenSearchForm(ITM_CategoryTable.TABLE_NAME, ITM_CategoryTable.CODE_FLD, txtCategory.Text, htbCriteria, blnAlwaysShowDialog);
			DataTable dtbData = FormControlComponents.OpenSearchFormForMultiSelectedRow(ITM_CategoryTable.TABLE_NAME, ITM_CategoryTable.CODE_FLD, txtCategory.Text, string.Empty, blnAlwaysShowDialog);
			
			// If has Master location matched searching condition, fill values to form's controls
			if (dtbData != null && dtbData.Rows.Count > 0)
			{
				StringBuilder sbCode = new StringBuilder();
				StringBuilder sbID = new StringBuilder();
				foreach (DataRow drowData in dtbData.Rows)
				{
					sbCode.Append(drowData[ITM_CategoryTable.CODE_FLD].ToString()).Append(",");
					sbID.Append(drowData[ITM_CategoryTable.CATEGORYID_FLD].ToString()).Append(",");
				}
				txtCategory.Text = sbCode.ToString(0, sbCode.Length - 1);
				txtCategory.Tag = sbID.ToString(0, sbID.Length - 1);
				
				//Reset modify status
				txtCategory.Modified = false;
			}
			else if(!blnAlwaysShowDialog)
			{
				txtCategory.Focus();
				return false;
			}				
			
			return true;			
		}


		/// <summary>
		/// Fill related data on controls when select Source
		/// </summary>
		/// <param name="blnOpenOnly"></param>
		private bool SelectSource(bool blnAlwaysShowDialog)
		{
			Hashtable htbCriteria = new Hashtable();
			
			//Call OpenSearchForm for selecting Master Location
			DataRowView drwResult = FormControlComponents.OpenSearchForm(ITM_SourceTable.TABLE_NAME, ITM_SourceTable.CODE_FLD, txtSource.Text, htbCriteria, blnAlwaysShowDialog);
			
			// If has Master location matched searching condition, fill values to form's controls
			if (drwResult != null)
			{				
				txtSource.Text = drwResult[ITM_SourceTable.CODE_FLD].ToString();
				txtSource.Tag = drwResult[ITM_SourceTable.SOURCEID_FLD];
				
				//Reset modify status
				txtSource.Modified = false;
			}
			else if(!blnAlwaysShowDialog)
			{
				txtSource.Focus();
				return false;
			}
			
			return true;			
		}


		private bool SelectItem(string pstrMethodName, string pstrFilterField, string pstrFilterValue, bool pblnAlwaysShowDialog)
		{
			try
			{
				string strFilter = ITM_ProductTable.TABLE_NAME + "." + ITM_ProductTable.CCNID_FLD + "=" + cboCCN.SelectedValue.ToString();
				
				if(txtCategory.Tag != null && txtCategory.Tag.ToString() != string.Empty)
					strFilter += " AND " + ITM_ProductTable.TABLE_NAME + "." + ITM_ProductTable.CATEGORYID_FLD + " IN (" + txtCategory.Tag.ToString() + ")";
				if (txtModel.Tag != null && txtModel.Tag.ToString() != string.Empty)
					strFilter += " AND " + ITM_ProductTable.TABLE_NAME + "." + ITM_ProductTable.REVISION_FLD + " IN (" + txtModel.Tag.ToString() + ")";
				if (txtSource.Tag != null && txtSource.Tag.ToString() != string.Empty)
					strFilter += " AND " + ITM_ProductTable.TABLE_NAME + "." + ITM_ProductTable.SOURCEID_FLD + " IN (" + txtSource.Tag.ToString() + ")";

				DataRowView drvResult = FormControlComponents.OpenSearchFormWithWhere(ITM_ProductTable.TABLE_NAME, pstrFilterField, pstrFilterValue, strFilter, pblnAlwaysShowDialog);
				
				if (drvResult != null)
				{
					txtPartNumber.Text = drvResult[ITM_ProductTable.CODE_FLD].ToString();
					txtPartName.Text = drvResult[ITM_ProductTable.DESCRIPTION_FLD].ToString();
					txtRevision.Text = drvResult[ITM_ProductTable.REVISION_FLD].ToString();
					txtPartNumber.Tag = drvResult[ITM_ProductTable.PRODUCTID_FLD].ToString();
					
					//Reset modify status
					txtCategory.Modified = false;
				}
				else if(!pblnAlwaysShowDialog)
				{
					switch (pstrFilterField)
					{
						case ITM_ProductTable.CODE_FLD:
							txtPartNumber.Focus();
							break;
						default:
							txtPartName.Focus();
							break;
					}
					return false;
				}
			
				return true;
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, pstrMethodName, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}	
		}


		#endregion Methods

		#region Event Processing

		/// <summary>
		/// InventoryStatus_Load
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, October 28 2005</date>
		private void InventoryStatus_Load(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".InventoryStatus_Load()";
			try
			{
				//Set authorization for user
				Security objSecurity = new Security();
				this.Name = THIS;
				if(objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
				{
					this.Close();
					// You don't have the right to view this item
					PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW ,MessageBoxIcon.Warning);
					return;
				}

				// Load combo box
				DataSet dstCCN = boUtil.ListCCN();
				cboCCN.DataSource = dstCCN.Tables[MST_CCNTable.TABLE_NAME];
				cboCCN.DisplayMember = MST_CCNTable.CODE_FLD;
				cboCCN.ValueMember = MST_CCNTable.CCNID_FLD;
				FormControlComponents.PutDataIntoC1ComboBox(cboCCN, dstCCN.Tables[MST_CCNTable.TABLE_NAME],MST_CCNTable.CODE_FLD,MST_CCNTable.CCNID_FLD,MST_CCNTable.TABLE_NAME);
				
				if (SystemProperty.CCNID != 0)
				{
					cboCCN.SelectedValue = SystemProperty.CCNID;
				}
				
				// fill default master location
				txtMasLoc.Tag = SystemProperty.MasterLocationID;
				txtMasLoc.Text = SystemProperty.MasterLocationCode;
				txtLocation.Tag = string.Empty;
				txtBin.Tag = string.Empty;
				txtCategory.Tag = string.Empty;
				txtSource.Tag = string.Empty;
				txtBinType.Tag = string.Empty;
				txtModel.Tag = string.Empty;
				txtPartNumber.Tag = string.Empty;
				
				//btnBin.Enabled = false;
				//txtBin.Enabled = false;

				//Store grid layout
				dtbGridLayOut = FormControlComponents.StoreGridLayout(dgrdData);
				LoadLocationGrid(SystemProperty.MasterLocationID);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		
		private void btnClose_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
		
		/// <summary>
		/// btnMasLoc_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>		
		private void btnMasLoc_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnMasLoc_Click()";
			try
			{
				SelectMasterLocation(true);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		/// <summary>
		/// btnLocation_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, October 28 2005</date>
		private void btnLocation_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnLocation_Click()";
			try
			{
				DataRowView drwResult = null;
				Hashtable htbCriteria = new Hashtable();
				//User has selected Master Location
				if (txtMasLoc.Text.Trim() != string.Empty)
				{
					htbCriteria.Add(MST_LocationTable.MASTERLOCATIONID_FLD, int.Parse(txtMasLoc.Tag.ToString()));	
				}
				else //User has not selected Master Location
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_RGA_MASTERLOCATION, MessageBoxIcon.Warning);
					txtLocation.Text = string.Empty;
					txtMasLoc.Focus();
					return;
				}
				drwResult = FormControlComponents.OpenSearchForm(MST_LocationTable.TABLE_NAME, MST_LocationTable.CODE_FLD, txtLocation.Text.Trim(), htbCriteria, true);
				if (drwResult != null)
				{
					txtLocation.Text = drwResult[MST_LocationTable.CODE_FLD].ToString();
					txtLocation.Tag = drwResult[MST_LocationTable.LOCATIONID_FLD];
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// btnCategory_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>		
		private void btnCategory_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnCategory_Click()";
			try
			{
				SelectCategory(true);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtMasLoc_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtMasLoc_Validating()";
			try
			{				
				if(txtMasLoc.Text.Length == 0)
				{
					txtMasLoc.Tag = string.Empty;
					return;
				}
				else if(!txtMasLoc.Modified)
				{
					return;
				}

				e.Cancel = !SelectMasterLocation(false);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// txtMasLoc_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>		
		private void txtMasLoc_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtMasLoc_KeyDown()";

			try
			{
				if ((e.KeyCode == Keys.F4) && (btnMasLoc.Enabled))
				{
					SelectMasterLocation(true);
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		
		/// <summary>
		/// txtCategory_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>		
		private void txtCategory_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtCategory_KeyDown()";

			try
			{
				if ((e.KeyCode == Keys.F4) && (btnCategory.Enabled))
				{
					SelectCategory(true);
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		
		/// <summary>
		/// txtCategory_Validating
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>		
		private void txtCategory_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtCategory_Validating()";
			try
			{
				if(txtCategory.Text.Length == 0)
				{
					txtCategory.Tag = string.Empty;
					return;
				}
				else if(!txtCategory.Modified)
				{
					return;
				}

				e.Cancel = !SelectCategory(false);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}			
		
		private void btnPrint_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnPrint_Click()";
			try
			{
				if(ValidateData())
				{
					this.Cursor = Cursors.WaitCursor;
					
					ShowInOuStockReport();					
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			finally
			{
				this.Cursor = Cursors.Default;
			}			
		}
		
		private void btnBin_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnBin_Click()";
			try
			{
				if(txtLocation.Text.Trim() == string.Empty)
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_RGA_SELECTLOC, MessageBoxIcon.Exclamation);
					dgrdData.Focus();
					
					return;
				}

				SelectBIN(true);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		
		private void btnSource_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSource_Click()";
			try
			{
				SelectSource(true);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}		

		private void txtBin_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtBin_KeyDown()";

			try
			{
				if ((e.KeyCode == Keys.F4) && (btnBin.Enabled))
				{
					if(txtLocation.Text.Trim() == string.Empty)
					{
						PCSMessageBox.Show(ErrorCode.MESSAGE_RGA_SELECTLOC, MessageBoxIcon.Exclamation);
						dgrdData.Focus();
						return;
					}

					SelectBIN(true);
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtBin_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtBin_Validating()";
			try
			{				
				if(txtBin.Text.Length == 0)
				{
					txtBin.Tag = string.Empty;
					return;
				}
				else if(!txtBin.Modified)
				{
					return;
				}
				
				if(txtLocation.Text.Trim() == string.Empty)
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_RGA_SELECTLOC, MessageBoxIcon.Exclamation);
					dgrdData.Focus();
					return;
				}

				e.Cancel = !SelectBIN(false);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtSource_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtSource_Validating()";
			try
			{				
				if(txtSource.Text.Length == 0)
				{
					txtSource.Tag = string.Empty;
					return;
				}
				else if(!txtSource.Modified)
				{
					return;
				}

				e.Cancel = !SelectSource(false);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtSource_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtSource_KeyDown()";

			try
			{
				if ((e.KeyCode == Keys.F4) && (btnSource.Enabled))
				{
					SelectSource(true);
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		

		private void dtmFromDate_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dtmFromDate_Validating()";

			try
			{
				if(dtmFromDate.Text.Trim() != string.Empty && dtmToDate.Text.Trim() != string.Empty)
				{
					if( ((DateTime)dtmFromDate.Value) >  ((DateTime)dtmToDate.Value))
					{
						PCSMessageBox.Show(ErrorCode.MESSAGE_MP_PERIODDATE, MessageBoxIcon.Error);
						e.Cancel = true;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}

		}

		private void dtmToDate_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtSource_KeyDown()";

			try
			{
				if(dtmFromDate.Text.Trim() != string.Empty && dtmToDate.Text.Trim() != string.Empty)
				{
					if( ((DateTime)dtmFromDate.Value) >  ((DateTime)dtmToDate.Value))
					{
						PCSMessageBox.Show(ErrorCode.MESSAGE_MP_PERIODDATE, MessageBoxIcon.Error);
						e.Cancel = true;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		
		private void dgrdData_AfterColUpdate(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_AfterColUpdate()";

			try
			{
				if(e.Column.DataColumn.DataField != SELECT_FLD)
				{
					return;
				}

				//Show selected loaction
				ChangeSelectedLocation();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		
		private void chkSelectAll_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".chkSelectAll_Click";
			try
			{
				for (int i=0 ; i < dgrdData.RowCount; i++) 
				{
					dgrdData[i, SELECT_FLD] = chkSelectAll.Checked? 1: 0;
				}				
				dgrdData.UpdateData();

				//Show selected loaction
				ChangeSelectedLocation();
			}			
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
				}
			}
		}		

		

		private void btnBinType_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnBinType_Click()";
			try
			{
				SelectBinType(true);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		
		private void btnModel_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnModel_Click()";
			try
			{
				SelectModel(true);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		

		private void txtBinType_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtBinType_KeyDown()";

			try
			{
				if ((e.KeyCode == Keys.F4) && (btnBinType.Enabled))
				{
					SelectBinType(true);
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtBinType_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtBinType_Validating()";
			try
			{
				if(txtBinType.Text.Length == 0)
				{
					txtBinType.Tag = string.Empty;
					return;
				}
				else if(!txtBinType.Modified)
				{
					return;
				}

				e.Cancel = !SelectBinType(false);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtModel_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtModel_Validating()";
			try
			{
				if(txtModel.Text.Length == 0)
				{
					txtModel.Tag = string.Empty;
					return;
				}
				else if(!txtModel.Modified)
				{
					return;
				}

				e.Cancel = !SelectModel(false);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtModel_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtModel_KeyDown()";

			try
			{
				if ((e.KeyCode == Keys.F4) && (btnModel.Enabled))
				{
					SelectModel(true);
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		#endregion Event Processing

		private void btnPartNumberSearch_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnPartNumberSearch_Click()";

			try
			{
				SelectItem(METHOD_NAME, ITM_ProductTable.CODE_FLD, txtPartNumber.Text, true);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void btnPartNameSearch_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnPartNameSearch_Click()";

			try
			{
				SelectItem(METHOD_NAME, ITM_ProductTable.DESCRIPTION_FLD, txtPartName.Text, true);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtPartNumber_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtPartNumber_Validating()";
			try
			{				
				if(txtPartNumber.Text.Trim().Length == 0)
				{
					txtPartNumber.Tag = string.Empty;
					txtPartName.Text = string.Empty;
					txtRevision.Text = string.Empty;
					return;
				}
				else if(!txtPartNumber.Modified)
					return;
				
				e.Cancel = !SelectItem(METHOD_NAME, ITM_ProductTable.CODE_FLD, txtPartNumber.Text, false);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtPartName_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtPartName_Validating()";
			try
			{				
				if(txtPartName.Text.Trim().Length == 0)
				{
					txtPartNumber.Tag = string.Empty;
					txtPartNumber.Text = string.Empty;
					txtRevision.Text = string.Empty;
					return;
				}
				else if(!txtPartName.Modified)
					return;
				
				e.Cancel = !SelectItem(METHOD_NAME, ITM_ProductTable.DESCRIPTION_FLD, txtPartName.Text, false);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtPartNumber_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtPartNumber_KeyDown()";

			try
			{
				if ((e.KeyCode == Keys.F4) && (btnPartNumberSearch.Enabled))
					SelectItem(METHOD_NAME, ITM_ProductTable.CODE_FLD, txtPartNumber.Text, true);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void txtPartName_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtPartName_KeyDown()";

			try
			{
				if ((e.KeyCode == Keys.F4) && (btnPartNameSearch.Enabled))
					SelectItem(METHOD_NAME, ITM_ProductTable.DESCRIPTION_FLD, txtPartName.Text, true);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}

		private void lblLocation_Click(object sender, System.EventArgs e)
		{
		
		}

		private void lblBinType_Click(object sender, System.EventArgs e)
		{
		
		}

		private void dgrdData_Click(object sender, System.EventArgs e)
		{
		
		}
	}
}
